/* Variables */
:root{
  --main-color: #EB7D10;
  --secondary-color: #fad0b6;
  --dark: #2e2e2e;
  --text: #555;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Source Sans Pro', sans-serif;
}

body {
  line-height: 1.6;
}

a {
  text-decoration: none;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.3);
  transition: 0.3s;
}

header.scrolled {
  background: #2e2e2e;
}

header > div {
  height: 75px;
  display: flex;
  align-items: center;
}

header .img { flex: 1; }
header .lista { flex: 2; }
header .contact { flex: 1; justify-content: center; }

.lista ul {
  list-style: none;
  display: flex;
}

.lista ul li{
  position: relative;
}

.lista a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

header .lista ul {
  display: flex;
  gap: 6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
header .lista ul li {
  height: auto;
  width: 120px;
  display: flex;
  align-items: center;
  padding: 0px;
}


header .lista ul li a{
  color: white;
  cursor: pointer;
  transition: 0.3s;
  
}

.lista ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2e2e2e;
  min-width: 180px;
}

.lista ul li ul li{
  width: 100%;
  color: white;
  padding: 10px;
}

header .contact{
    display: flex;
    align-items: center;
    justify-content:center;

}

header.scrolled{
    background-color: #363636;
    transition: 0.5s;
}

button {
  background: var(--main-color);
  border: none;
  border-radius: 6px;
  color: white;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

/* FONDO GENERAL */
body {
    height: 1500px;
}


/* CONTENEDOR PRINCIPAL - COCINA*/
.sectionPrincipal {
  height: 80vh;
  background: url(../img/subpag/reforma_cocina/IMG_3962-HDR.jpg) center/cover;
  display: flex;
  align-items: center;
  padding-left: 10%;
  position: relative;
}

/* CONTENEDOR PRINCIPAL - BAÑO */
.sectionPrincipal_baño {
  height: 80vh;
  background: url(../img/subpag/reforma_baño/250-IMG_4419-HDR.jpg) center/cover;
  display: flex;
  align-items: center;
  padding-left: 10%;
  position: relative;
}

/* CONTENEDOR PRINCIPAL - INTEGRAL */
.sectionPrincipal_integral {
  height: 80vh;
  background: url(../img/subpag/reforma_integrales/293-IMG_4287-HDR.jpg) center/cover;
  display: flex;
  align-items: center;
  padding-left: 10%;
  position: relative;
}

/* TITULO */
.sectionPrincipal_baño .hero-text, .sectionPrincipal .hero-text, .sectionPrincipal_integral .hero-text{
    position: absolute;
    top: 45%;
    left: 25%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: left;
}

.sectionPrincipal_integral #title, .sectionPrincipal_baño #title, .sectionPrincipal #title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sectionPrincipal_baño::before, .sectionPrincipal::before, .sectionPrincipal_integral::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

.hero-text {
  position: relative;
  color: white;
  max-width: 500px;
}

.hero-text h2 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-text hr {
  width: 80px;
  border: 2px solid var(--main-color);
  position: relative;
  bottom: 3vh;
}


/* SECCION VACIO */
main #vacio{
  width: 100%;
  height: 50vh;
}

/* SECTION VACIO - CONTENEDOR */
main #vacio div {
  height: 100%;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center; 
  padding: 0 20%;
  text-align: center;
}

/* SECTION VACIO - TEXTO */
main #vacio div h2{
  font-size: 28px;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  letter-spacing: 1px;
}

.sectionExplicacion {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 10%;
  gap: 40px;
}

.sectionExplicacion .divSection{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sectionExplicacion .imgExplicacion{
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgExplicacion img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  object-fit: cover;
}

.sectionExplicacion .infoExplicacion{
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.infoExplicacion h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--dark);
}

.infoExplicacion p {
  color: var(--text);
  font-size: 16px;
}


/* PROYECTOS */

#tipos_reformas{
  padding: 80px 10%;
  background: #f5f5f5;
}

#tipos_reformas h2{
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  color: #333;
}

/* CONTENEDOR */
#tipos_reformas .contenedor{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */
#tipos_reformas .divSection{
  background: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* HOVER */
#tipos_reformas .divSection:hover{
  transform: translateY(-8px);
}

/* IMAGEN */
#tipos_reformas .imgExplicacion img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  padding: 2%;
  border-radius: 15px;
}

/* TEXTO */
#tipos_reformas .infoExplicacion{
  padding: 20px;
}

#tipos_reformas .infoExplicacion h3{
  font-size: 20px;
  margin-bottom: 10px;
  color: #2e2e2e;
}

#tipos_reformas .infoExplicacion p{
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ANTES Y DESPUES */
#antes_despues{
  padding: 80px 10%;
  background: #f5f5f5;
}

#antes_despues h2{
  text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
}

/* GRID */
#antes_despues .contenedor{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* CARD */
.card{
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* IMAGENES */
.img-box{
  display: flex;
  gap: 15px;
}

.img-item{
  width: 50%;
  text-align: center;
}

.img-item h4{
  margin-bottom: 10px;
  font-size: 14px;
  color: #EB7D10;
}

.img-item img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}








/** FOOTER **/
footer{
    height: 350px;
    background-color: #363636;
    padding: 15px;
}

footer div{
    height: 100%;
    width: 49.59%;
    float: left;
    display: flex;
}

footer div article{
    height: 80%;
    width: 49.7%;
    float: left;
    padding: 3%;
}

footer img{
    width: 150px;
    text-align: center;
}

footer h3{
    color: #f59e69;
    font-size: 20px;
}

footer p, p a{
    color: #ffffff;
    font-size: 15px;
    transition: 0.3s;

}

footer .info{
    height: 50%;
    background-color: #363636;
    padding-top: 0;

}

/** REDES - FOOTER **/
footer .redes{
    height: 50%;
}

footer .redes img{
    width: 60px;
    height: 60px;
    margin-right: 20px;
}
    