/* ==========================================================
   RESET
========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-snap-align: start;
  /* Punto de enganche vertical */
}


/* ==========================================================
   VARIABLES
========================================================== */

:root {
  --debug-border-width: 0;
  --border-size: 0;
  --img-border-size: 12px;
  
  --shadow_1:
    8px 8px 18px rgba(0,0,0,.6),
   -8px -8px 18px rgba(255,255,255,.1),
    inset 1px 1px 2px rgba(255,255,255,.2);
  
  --shadow_2:
    2px 7px 6px rgba(0,0,0,.6),
   -2px -2px 2px rgba(195, 195, 195, 0.02),
    inset 1px 1px 2px rgba(255, 251, 185, 0.3);
  
}

/* ==========================================================
   LAYOUT
========================================================== */


/* Fondo general */
body {
  
  width: 100%;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-family: system-ui, sans-serif;

  /* Scroll vertical */
  overflow-y: auto;
  /* Snap vertical */
  scroll-snap-type: y mandatory;
  
  /*Eliminando la barra del scroll -->*/
  /* Firefox */
  scrollbar-width: none;
  /* IE y Edge antiguo */
  -ms-overflow-style: none;
  background:
      url(../fondos/fondo_webpc.png)
      50% center /* pos horizontal, pos vertical*/
      / cover
      no-repeat
      fixed;
  z-index: -100;
  
}
/*Eliminando la barra del scroll -->*/
/* Chrome, Edge, Opera y Safari */
body::-webkit-scrollbar {
  display: none;
}
body::after {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 9999;

    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.15) 65%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

header {
  width: 100%;
  height: 60px;

  position: fixed;
  top: 0;

  display: none;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;

  background-color: #648f642d;
}

main {
  width: 100%;
  max-width: 1980px;
  height: 100svh;
  
  display: block;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  
}

main::after {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 9999;

    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.15) 65%,
        rgba(0, 0, 0, 0.45) 100%
    );
}


/* Secciones fullscreen */
section {

  height: 100vh;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  /* Punto de enganche vertical */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: white;
}

/* Colores para distinguir secciones */
/*color de fondo para los inpares*/
/*section:nth-child(odd) {
  background: #333;
}*/

/*color de fondo para los pares*/
/*section:nth-child(even) {
  //background: #555;
}*/

footer{
  background-color: red;
}


/* ======================================================================================
   Clases Generales
========================================================================================= */

/* Contenedor principal con scroll vertical + snap */
.scroll-container {
  
  overflow-x: hidden;
  overflow-y: auto;
  /* Scroll vertical */
  scroll-snap-type: y mandatory;
  /* Snap vertical */

  /*Eliminando la barra del scroll -->*/
  /* Firefox */
  scrollbar-width: none;
  /* IE y Edge antiguo */
  -ms-overflow-style: none;

}

/*Eliminando la barra del scroll -->*/
/* Chrome, Edge, Opera y Safari */
.scroll-container::-webkit-scrollbar {
  display: none;
}


/* ========================================================================================
   SECCIÓN 1: HERO
=========================================================================================== */
#hero {
  flex-direction: column-reverse;
  background-color: transparent;

}
.sec_cont {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  
  border: var(--debug-border-width) solid green;
}

.cont_cv {
  justify-self: center;
}
.cont_st {
  justify-self: start;
}
.cont_end {
  justify-self: end;
}

.cont_iz {
  justify-content:center;
  align-content: flex-start;
}

.cont_dr {
  justify-content:flex-end;
  align-content: center;
}

.sec_logo {
  width: 100%;
  height: auto;
  padding-top: 24px;
  object-fit:scale-down;
  object-position:center;
}

.hero__title{
    display:flex;
    flex-direction:column;
    align-items:center;

    font-weight:300;
    font-size:clamp(2.5rem, 1.5rem + 3vw, 5rem);
    line-height:0.95;
    letter-spacing:-0.04em;
    text-transform:uppercase;
    color:#d8d8d8;
}

.hero__title span{
    display:block;
}

.hero__title strong{
    display:block;

    margin-top:0.12em;

    font-weight:700;
    color:#d4a44d;
}
#cont_hero_tittle {
  justify-content: center;
}

#ico_down {
  width: 100%;
  position: absolute;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  bottom: 20px;
}

.sec_ico {
  justify-self: center;
  width: 64px;
  height: 64px;
  object-fit:scale-down;
  object-position:center;
  
  animation: bounce 2s ease-in-out infinite;

}

/* -- Animaciones -- */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        filter: brightness(0.9);
    }

    25% {
        transform: translateY(-8px);
        filter: brightness(0.5);
    }

    50% {
        transform: translateY(0);
        filter: brightness(0.9);
    }

    75% {
        transform: translateY(-4px);
        filter: brightness(0.5);
    }
}

/* DIseño en PC (pantallas mas grandes de 620px) */
@media (min-width: 620px) {
  #hero {
    flex-direction: row;
  }
  
  .sec_cont{
    justify-content: center;
    align-items: center;
  }
  
  #ico_down{
    bottom: 8%;
  }
}


/* ========================================================================================
   SECCIÓN 2: DESICION
=========================================================================================== */
#quieres_reformar {
  display: none;
  background-color: transparent;
}

.sec_cont2 {
  width: 100%;
  height: 100svh;
  
  display: flex;
  flex-direction: column;;
  justify-content: center;
  align-items: center;
}

.sec_bl_title {
  min-width: 100px;
  width: 100%;
  max-width: 350px;
  min-height: 100px;
  height: 60%;
  max-height: 200px;
  border-radius: 24px;
  transform:translateY(-100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  background-color: rgba(32, 30, 30, 0.4);
  box-shadow: var(--shadow_1)
  
}

.sec_title{
    
    display:flex;
    flex-direction:column;
    align-items:center;

    padding-top: 36px;
    font-weight:300;
    font-size:clamp(2.5rem, 1.5rem + 3vw, 5rem);
    line-height:0.95;
    letter-spacing:-0.04em;
    color:#d8d8d8;
}

.sec_title span{
    display:block;
}

.sec_title strong{
    display:block;

    margin-top:0.12em;

    font-weight:700;
    color:#d4a44d;
}


.sec_cont2_bg {
  position: absolute;
  perspective:2000px;
  background-color: transparent;
  z-index: -10;
}

.sec_cont2_img {
  display: block;
  width: 100%;
  height: 100svh;
  /*object-fit:cover;*/
  object-position: center;
  transform: scale(1);
  filter:
        drop-shadow(0 4px 10px rgba(0, 0, 0, .9))
        drop-shadow(0 12px 30px rgba(0, 0, 0, .9));
}

#wc_not {
  object-position: right;
  transform-origin: right center;
  transform:
        rotateY(-45deg)
        translateX(-51%)
        scaleX(-1);
}

#wc_ye {
  object-position: left;
  transform-origin: left center;
  transform:
        rotateY(45deg)
        translateX(51%);
}

.sec_cont2_track {
  position: absolute;
  z-index: 10;
  width: 100%;
  bottom: 8%;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
  
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 49%,
    rgba(22, 22, 22, 0.29) 50%,
    transparent 100%
  );
}

.track_progress {
  width: 60%;
  height: 1px;
  border-radius: 4px;
  background-color: rgb(125, 99, 50);
  display: flex;
  flex-direction: column;
  justify-content: center;
  
}

.progress_thumb {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-50%);
  left: 0%;
  
  pointer-events: auto;
  background-color: rgba(56, 56, 56, 0.48);
  box-shadow: var(--shadow_2);
}

.progress_thumb:hover {
  cursor: pointer;
}

.thumb_ico {
  width: 32px;
  height: auto;
  transform: translateY(12%);
  
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.73));
}


/* ========================================================================================
   SECCIÓN 3: SERVICIOS
=========================================================================================== */


.sec3_cont {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  display: flex;
  justify-self: center;
  align-items: center;
  
}

.sec3_nav {
  min-width: 62px;
  width: 15%;
  max-width: 124px;
  height: 80%;
  
  position: absolute;
  z-index: 100;
  top: 10%;
  right: 24px;
  
  display: flex;
  justify-content: center;
  align-items: center;
}

.sec3_nav ul {
  
  height: 100%;
  max-height: 1080px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: 12px;
}

.sec3_nav ul li {
  font-size: 0;
  position: relative;
  transition: filter linear 0.5s;
}
.sec3_nav ul li:hover {
  filter:
        drop-shadow(6px 12px 8px rgba(0, 0, 0, 0));
  
}
.sec3_nav ul li .lb{
  
  position: absolute;
  top: 0;
  right: 50%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
  to top,
    #0A0A0B,
    #242424
  );
  color: white;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  
  transition: ease-out 0.31s;
}

.sec3_nav ul li:hover .lb{
  
  padding: 12px 100% 12px 24px;
  padding-right: 100%;
  font-size: 1.4rem;
}
.sec3_nav ul li:hover .sec3_btn_ico{
  filter:
        drop-shadow(6px 12px 8px rgba(0, 0, 0, 0));
}
.sec3_nav ul li .lb_active{
  padding: 12px 100% 12px 24px;
  padding-right: 100%;
  font-size: 1.4rem;
}
.bl_active h3{
  font-size: 1.4em;
}
.sec3_btn_ico {
  width: 100%;
  height: auto;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  align-content: center;
  
  filter:
        drop-shadow(6px 6px 8px rgba(0, 0, 0, 0.7));
  transition: filter ease-out 0.5s;
}

.sec3_btn_ico:hover{
  cursor: pointer;
}

/* ========================================================================================
   SECCIÓN #: Scroll Horizontal
=========================================================================================== */

/* Contenedor horizontal dentro de la sección */
.servicios-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  /* Scroll horizontal */
  scroll-snap-type: x mandatory;
  /* Snap horizontal */
  /*gap: 20px;*/
  /* Separación entre tarjetas */
  padding: 20px;
}

/* Cada tarjeta de servicio */
.servicio-item {
  min-width: 80%;
  /* Ocupa gran parte de la pantalla */
  height: 100%;
  background: #2b6e45;
  border-radius: 10px;
  scroll-snap-align: center;
  /* Se engancha al centro */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
}

/* Servicio 3 dividido en dos lados */
.servicio-3 {
  display: flex;
  gap: 20px;
  padding: 20px;
}

/* Cada lado ocupa el 50% */
.lado1,
.lado2 {
  width: 50%;
  height: 100%;
  border-radius: 10px;
}

/* LADO 1: contenedor externo SIN scroll */
.lado1 {
  background: #222;
  padding: 0;
  overflow: hidden;
  /* Importante */
  position: relative;
}

/* Contenedor interno con scroll vertical real */
.lado1-scroll {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  padding: 20px;
  display: block;
  /* NO flex */
}

/* Cada bloque dentro del scroll */
.item-titulo {
  height: 45vh;
  /* Tamaño real → snap perfecto */
  scroll-snap-align: start;
  background: #333;
  border-radius: 8px;
  margin-bottom: 20px;
  /* Separación sin romper el snap */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  color: white;
}

/* LADO 2 vacío */
.lado2 {
  background: #444;
}


/* #endregion */


/* ========================================================================================
   CODIGO NUEVO SIN ORDENAR---
=========================================================================================== */



footer {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  
  
  background-color: #171715;
}

.sec_ft {
  width: 100%;
  height: 100vh;
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-content: flex-start;
  align-items: flex-start;
  background-color: transparent;
}


.sec_ft_img {
  width: auto;
  height: 80%;
  transform: translateX(-15%);
  object-position: left;
  overflow: visible;
}

.ft_bl {
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 0;
  right: 0;
  background: linear-gradient(
  to bottom,
    rgba(12, 12, 11, 0) 0%,
    #0C0C0B 25%,
    #171715 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  
  margin-top: -20%
}

.ft_bl_ct {
  width: 100%;
  flex: 1;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content:space-around;
  align-items: center;
  
}

.ft_bl_ct:nth-child(1){
  flex: 1.2;
}
.ft_bl_ct:nth-child(2){
  flex-direction: row;
  justify-content: center;
  gap: 36px;
}
.footer_title{
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items:center;
    gap:24px;
  
    font-size: 1.2rem;
    color:#d8d8d8;
}

.footer_title span{
    
    display:block;
    font-weight: 400;
    color:#d4a44d;
}

.footer_title strong{
    display:block;
    text-align: center;
    font-size: 1.8rem;
    font-weight:500;
}
.ft_text {
    display:flex;
  flex-direction: column;
    justify-content: center;
    align-items:center;
  
    font-size: 1.2rem;
    color:#d8d8d8;
}

.ft_text span{
    display: block;
    text-align: center;
    line-height: .9;
    font-weight: 300;
}
.ft_text strong{
    display:block;
    text-align: center;
    font-size: 2.2rem;
    font-weight:500;
}
.btn_contacto {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(to bottom, #ebb24d, #d4a44d);
  
}
.btn_contacto img{
  width: 100%;
  height: auto;
}
/* DIseño en PC (pantallas mas grandes de 620px) */
@media (min-width: 1080px) {
  footer{
    flex-direction: row;
  }
  
  .sec_ft_img{
    height: 100%;
    transform:  translateX(0);
  }
  .ft_bl {
    width: 50%;
    height: 100%;
    max-height: 540px;
    bottom: 50vh;
    transform: translateY(50%);
    background: linear-gradient(
    to bottom,
    rgba(12, 12, 11, 0) 0%,
    rgba(12, 12, 11, 0) 25%,
    rgba(23, 23, 21, 0) 100%
  );
  }
}
