/* ===================== */
/* PALETA Y RESET GLOBAL */
/* ===================== */
:root {
    --color-primary-dark: #181818;   /* negro profundo */
    --color-primary: #444444;        /* gris oscuro */
    --color-secondary: #888888;      /* gris medio */
    --color-accent-1: #e0e0e0;      /* gris claro */
    --color-accent-2: #f5f5f5;      /* blanco suave */
    --color-light: #ffffff;          /* blanco puro */
    --color-white: #ffffff;          /* blanco original */
    --color-text: #222222;           /* negro/gris para texto */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
  overflow-x: hidden;
}

body {
    color: var(--color-text);
    background: var(--color-accent-2);
    max-width: 100vw;
    font-family: 'Roboto', Arial, sans-serif;
    overflow-x: hidden;
}


.nombre-inmobiliaria,
.nav-principal,
.footer-affedco-nombre,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
}

.nombre-affedco {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    white-space: nowrap;
    display: block;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nombre-affedco .affedco {
    color: var(--color-primary-dark);
}

.nombre-affedco .legacy {
    color: var(--color-primary);
}

/* ===================== */
/* HEADER Y NAVEGACIÓN   */
/* ===================== */
header {
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 2px 8px var(--color-light);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-principal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    margin: auto;
    padding: 0 20px;
    position: relative;
}

.logo-affedco {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-affedco-img {
    height: 104px;
    width: auto;
    display: block;
}

.nombre-inmobiliaria {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    white-space: nowrap;
    display: block;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nombre-inmobiliaria .affedco {
    color: var(--color-primary-dark);
}

.nombre-inmobiliaria .legacy {
    color: var(--color-primary);
}

.menu-movil {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    margin-left: 24px;
    z-index: 1200;
    background: transparent;
    border: none;
}

.menu-movil span {
    display: block;
    width: 30px;
    height: 4px;
    background: var(--color-primary-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.enlaces-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
}

.enlaces-nav li a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.2s;
    padding: 6px 12px;
    text-align: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.enlaces-nav li a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 3px;
    background: var(--color-primary);
    transition: width 0.3s;
    border-radius: 2px;
}

.enlaces-nav li a:hover {
    color: var(--color-primary-dark);
}

.enlaces-nav li a:hover::after {
    width: 100%;
}

/* ===================== */
/* RESPONSIVE HEADER/BODY*/
/* ===================== */
@media (max-width: 1450px) {
    .menu-movil {
        display: flex;
    }
    .enlaces-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 220px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: -2px 0 12px var(--color-primary-dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 0 24px;
        gap: 18px;
        transition: right 0.3s;
        z-index: 1100;
    }
    .enlaces-nav.open {
        right: 0;
        padding-top: 200px;
    }
    .logo-affedco {
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .nav-principal {
        width: 98%;
        padding: 0 8px;
    }
    .logo-affedco-img {
        height: 48px;
    }
    .nombre-inmobiliaria {
        font-size: 1.1rem;
        max-width: auto;
    }
    .logo-affedco {
        justify-content: center;
        width: 100%;
        margin-left: 70px;
        text-align: center;
    }
}

/* ===================== */
/* FOOTER                */
/* ===================== */
footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 60px 0 0 0;
    margin-top: 60px;
    font-size: 1.08rem;
}

.footer-affedco-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    margin: auto;
    gap: 48px;
    padding: 0 12px 40px 32px;
}

.footer-affedco-logo-info {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-affedco-logo {
    width: 100%;
}

.footer-affedco-nombre {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

.footer-affedco-nombre .affedco {
    color: var(--color-white);
}

.footer-affedco-nombre .legacy {
    color: var(--color-primary);
}

.footer-affedco-desc {
    color: var(--color-white);
    font-size: 1rem;
    margin-top: 8px;
    text-align: center;
}

.footer-affedco-links {
    flex: 1 1 180px;
}

.footer-affedco-links h4 {
    color: var(--color-accent-1);
    font-size: 1.18rem;
    margin-bottom: 12px;
    font-weight: bold;
}

.footer-affedco-links ul {
    list-style: none;
    padding: 0;
}

.footer-affedco-links ul li {
    margin-bottom: 8px;
}

.footer-affedco-links ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 4px 0;
    display: inline-block;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.footer-affedco-links ul li a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 3px;
    background: var(--color-light);
    transition: width 0.3s;
    border-radius: 2px;
}

.footer-affedco-links ul li a:hover {
    color: var(--color-accent-1);
    background: transparent;
}

.footer-affedco-links ul li a:hover::after {
    width: 100%;
}

.footer-affedco-contacto {
    flex: 1 1 220px;
}

.footer-affedco-contacto h4 {
    color: var(--color-accent-1);
    font-size: 1.18rem;
    margin-bottom: 12px;
    font-weight: bold;
}

.footer-affedco-contacto p {
    margin-bottom: 10px;
    color: var(--color-white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-affedco-contacto i {
    color: var(--color-white);
    font-size: 1.1rem;
}

.footer-affedco-redes {
    margin-top: 10px;
}

.footer-affedco-redes a {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-right: 12px;
    transition: color 0.2s;
}

.footer-affedco-redes a:hover {
    color: var(--color-primary);
}

.footer-affedco-redes a i {
    color: var(--color-white);
    transition: color 0.2s;
}

.footer-affedco-redes a:hover i {
    color: var(--color-secondary);
}

.footer-affedco-bottom {
    text-align: center;
    padding: 18px 0 10px 0;
    font-size: 1rem;
    margin-top: 0;
}
/* Logo del footer completamente blanco */
.footer-affedco-logo {
    filter: brightness(0) invert(1);
}

/* ===================== */
/* RESPONSIVE FOOTER     */
/* ===================== */
@media (max-width: 900px) {
    .footer-affedco-container {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        width: 100%;
        padding: 0 8px 32px 8px;
    }
    .footer-affedco-logo-info {
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-affedco-links {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        text-align: center;
    }
    .footer-affedco-links h4 {
        grid-column: 1 / span 2;
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-affedco-links ul {
        padding: 0;
        margin: 0;
        display: contents;
    }
    .footer-affedco-links ul li {
        margin-bottom: 8px;
        width: 100%;
    }
    .footer-affedco-contacto {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        text-align: center;
    }
    .footer-affedco-contacto h4 {
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-affedco-contacto p {
        justify-content: center;
    }
    .footer-affedco-bottom {
        font-size: 0.98rem;
    }
}

@media (max-width: 600px) {
    .footer-affedco-container {
        width: 100%;
        padding: 0 4px 24px 4px;
    }
    .footer-affedco-logo-info {
        gap: 10px;
    }
    .footer-affedco-links,
    .footer-affedco-contacto {
        max-width: 100%;
    }
}

/* ===================== */
/* WHATSAPP BUBBLE       */
/* ===================== */
.affedco-whatsapp-bubble {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 2000;
    background: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 4px 16px var(--color-primary);
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.affedco-whatsapp-bubble a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: filter 0.2s;
}

.affedco-whatsapp-icon {
    width: 48px;
    height: 48px;
    transition: filter 0.2s;
    filter: brightness(0) invert(1);
}

.affedco-whatsapp-bubble:hover {
    background: var(--color-accent-1);
    transform: scale(1.12);
    box-shadow: 0 8px 24px var(--color-primary);
}

.affedco-whatsapp-bubble:hover .affedco-whatsapp-icon {
    filter: brightness(0) invert(0);
}




/* Carrusel AFFEDCO */
.affedco-carrusel {
  width: 100%;
  min-height: 420px;
  height: 60vh;
  max-height: 700px;
  position: relative;
  overflow: hidden;
  margin-top: 120px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.carrusel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.carrusel-slide img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.carrusel-slide.active {
  opacity: 1;
  z-index: 2;
  transition: opacity 1s;
}

.carrusel-content {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carrusel-content h1 {
  font-size: 2.8rem;
  font-family: 'Signika', 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
  letter-spacing: 1.5px;
}

.carrusel-content p {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
  margin-bottom: 0;
}

.carrusel-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carrusel-dots .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.carrusel-dots .dot.active {
  background: #fff;
  transform: scale(1.18);
}

@media (max-width: 900px) {
  .affedco-carrusel {
    min-height: 260px;
    height: 800px;
    margin-top: 90px;
  }
  .carrusel-content h1 {
    font-size: 90px;
  }
  .carrusel-content p {
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .affedco-carrusel {
    min-height: 180px;
    height: 500px;
    margin-top: 70px;
  }
  .carrusel-content h1 {
    font-size: 70px;
  }
  .carrusel-content p {
    font-size: 20px;
  }
  .carrusel-dots {
    bottom: 12px;
    gap: 8px;
  }
  .carrusel-dots .dot {
    width: 10px;
    height: 10px;
  }
}


/* ===================== */
/* SERVICIOS DESTACADOS  */
/* ===================== */
.servicios-destacados {
  width: 100%;
  padding: 64px 0 48px 0;
  background: var(--color-accent-2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicios-destacados h2 {
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
}

.servicios-cards {
  display: flex;
  gap: 32px;
  width: 90%;
  margin: 0 auto;
}

.servicio-card {
  position: relative;
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(24,24,24,0.06);
  padding: 32px 18px 28px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--color-primary-dark);
  transition: box-shadow 0.2s, transform 0.18s, background 0.2s;
  min-height: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 3px solid;
  background-clip: padding-box;
}

.servicio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.servicio-card:hover::before {
  background: linear-gradient(120deg, #444444, #888888, #e0e0e0);
}

.servicio-card:hover {
  box-shadow: 0 6px 32px rgba(24,24,24,0.13);
  transform: translateY(-6px) scale(1.025);
  background: var(--color-accent-1);
  color: var(--color-light);
  text-decoration: none;
}

.servicio-card:active {
  transform: scale(0.98);
}

.servicio-icono {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-bottom: 18px;
  margin-top: 2px;
  transition: color 0.2s;
  z-index: 1;
}

.servicio-card:hover .servicio-icono {
  color: var(--color-primary-dark);
}

.servicio-card h3,
.servicio-card p {
  position: relative;
  z-index: 1;
}

/* Responsive para tablets y móviles */
@media (max-width: 1200px) {
  .servicios-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}
@media (max-width: 800px) {
  .servicios-cards {
    grid-template-columns: 1fr;
    gap: 22px;
    width: 98%;
  }
  .servicio-card {
    min-height: 0;
    padding: 28px 12px 22px 12px;
  }
  .servicios-destacados {
    padding: 38px 0 24px 0;
  }
  .servicios-destacados h2 {
    font-size: 1.5rem;
    margin-bottom: 22px;
  }
}




@media (max-width: 600px) {
    .servicios-cards {
        gap: 22px;
        display: flex;
        width: 80%;
        flex-direction: column;
    }
}




/* ===================== */
/* BENEFICIOS AFFEDCO    */
/* ===================== */
.beneficios-affedco {
  width: 100%;
  padding: 64px 0 48px 0;
  background: 
    linear-gradient(120deg, rgba(105, 105, 105, 0.96) 60%, rgba(0, 0, 0, 0.1) 100%),
    url('/photos/galeria/PXL_20241202_174212913.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.beneficios-affedco h2 {
  font-size: 2.1rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
}

.beneficios-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .beneficios-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .beneficios-cards {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
  }
}

.beneficio-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(to bottom, #e0f7e9 0%, #f5fff9 100%);
  border: 2px solid #21915033;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(24,24,24,0.06);
  padding: 24px 18px 20px 18px;
  min-height: 120px;
  position: relative;
  transition: box-shadow 0.18s, border-color 0.18s, background 0.18s;
}

.beneficio-card:hover {
  border-color: #219150;
  background: linear-gradient(to bottom, #d2f5e3 0%, #eafff3 100%);
  box-shadow: 0 6px 24px rgba(33,145,80,0.13);
}

.beneficio-icono {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #b2e5c7;
  border-radius: 50%;
  box-shadow: 0 1px 6px #21915011;
  margin-right: 6px;
  margin-top: 2px;
}

.beneficio-titulo {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #219150;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.beneficio-desc {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .beneficios-cards {
    grid-template-columns: 1fr;
    gap: 22px;
    width: 98%;
  }
  .beneficios-affedco {
    padding: 38px 0 24px 0;
  }
  .beneficios-affedco h2 {
    font-size: 1.4rem;
    margin-bottom: 22px;
  }
  .beneficio-card {
    padding: 18px 10px 14px 10px;
  }
}


@media (max-width: 600px) {
    .beneficio-card {
        padding: 25px;
        width: 85%;
    }
    .beneficios-cards{
      justify-items: center;
    }
}



/* ===================== */
/* TESTIMONIOS AFFEDCO   */
/* ===================== */
.testimonios-affedco {
  width: 100%;
  padding: 64px 0 48px 0;
  background: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonios-affedco h2 {
  font-size: 2.1rem;
  color: var(--color-primary-dark);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 2px 0 #e0e0e0;
}

.testimonios-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  width: 90%;
  margin: 0 auto;
}

.testimonio-card {
  background: #f8f8f6 url('https://www.transparenttextures.com/patterns/marble.png');
  border: 2.5px solid #dedede;
  border-radius: 18px 18px 16px 16px;
  box-shadow: 0 4px 24px rgba(60,60,60,0.07);
  padding: 38px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s, border-color 0.18s, background 0.18s;
  font-family: 'Georgia', 'Times New Roman', serif;
  min-height: 320px;
  overflow: hidden;
}

.testimonio-card:hover {
  box-shadow: 0 8px 36px rgba(60,60,60,0.16);
  border-color: #b7b7b7;
  background: #f3f3f0 url('https://www.transparenttextures.com/patterns/marble.png');
  transform: translateY(-8px) scale(1.025);
}

.testimonio-columnas {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
  width: 100%;
}

.columna {
  display: block;
  width: 12px;
  height: 48px;
  background: #e0e0e0;
  border-radius: 6px 6px 4px 4px;
  box-shadow: 0 2px 6px #d0d0d0;
  border: 1.5px solid #d3d3d3;
}

.testimonio-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonio-texto {
  font-size: 1.13rem;
  color: var(--color-primary-dark);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  margin-bottom: 22px;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 #ececec;
}

.testimonio-cliente {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}

.testimonio-nombre {
  font-size: 1.08rem;
  font-weight: bold;
  color: #444444;
  font-family: 'Georgia', 'Times New Roman', serif;
  letter-spacing: 0.5px;
}

.testimonio-cargo {
  font-size: 0.98rem;
  color: #888888;
  font-family: 'Georgia', 'Times New Roman', serif;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

/* Responsive */
@media (max-width: 1100px) {
  .testimonios-cards {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
    width: 100%;
  }
  .testimonio-card {
    min-height: 0;
    width: 90%;
    padding: 28px 12px 22px 12px;
  }
  .testimonios-affedco {
    padding: 38px 0 24px 0;
  }
  .testimonios-affedco h2 {
    font-size: 1.4rem;
    margin-bottom: 22px;
  }
}


/* ===================== */
/* GALERÍA AFFEDCO       */
/* ===================== */
.galeria-affedco {
  width: 100%;
  padding: 64px 0 48px 0;
  background: var(--color-accent-2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galeria-affedco h2 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
}

.galeria-mosaico {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 22px;
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.galeria-item {
  position: relative;
  background: #e0e0e0;
  border: 4px solid #bdbdbd;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(60,60,60,0.10);
  display: flex;
  align-items: flex-end;
  transition: box-shadow 0.22s, transform 0.18s, border-color 0.18s;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s, transform 0.3s;
  filter: grayscale(18%) contrast(1.05);
}

.galeria-item:hover {
  box-shadow: 0 8px 36px rgba(60,60,60,0.18);
  border-color: #888888;
  transform: translateY(-6px) scale(1.025);
}

.galeria-item:hover img {
  filter: grayscale(0%) contrast(1.15) brightness(1.08);
  transform: scale(1.04);
}

.galeria-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(245,245,245,0.92);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 10px 18px;
  border-top: 2.5px solid #bdbdbd;
  border-radius: 0 0 14px 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.2px;
  box-shadow: 0 -2px 8px #e0e0e0;
  transition: background 0.2s;
}

.galeria-caption i {
  color: var(--color-primary);
  font-size: 1.2em;
}

.galeria-item--grande {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  min-height: 380px;
}

@media (max-width: 1100px) {
  .galeria-mosaico {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 260px);
    gap: 16px;
    width: 80%;
  }
  .galeria-item--grande {
    grid-column: 1 / span 2;
    grid-row: 1 / span 1;
    min-height: 220px;
  }
}

@media (max-width: 700px) {
  .galeria-mosaico {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 260px);
    gap: 12px;
    width: 80%;
  }
  .galeria-item--grande {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
    min-height: 160px;
  }
  .galeria-affedco {
    padding: 32px 0 18px 0;
  }
  .galeria-affedco h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
}



/* ===================== */
/* CONTACTO AFFEDCO      */
/* ===================== */
.contacto-affedco {
  width: 100%;
  padding: 64px 0 48px 0;
  background: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.contacto-affedco h2 {
  font-size: 2.1rem;
  color: var(--color-primary-dark);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.balcon-colonial {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 8px;
  height: 18px;
}

.balcon-barra {
  display: block;
  width: 18px;
  height: 8px;
  background: #bdbdbd;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 2px 4px #e0e0e0;
  border: 1.5px solid #dedede;
}

.contacto-formulario-contenedor {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: #f8f8f6 url('https://www.transparenttextures.com/patterns/marble.png');
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(60,60,60,0.09);
  padding: 36px 28px 32px 28px;
  position: relative;
  z-index: 1;
  border: 2.5px solid #dedede;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pilares-griegos {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-bottom: 18px;
  gap: 18px;
}

.pilares-inferiores {
  margin-top: 18px;
  margin-bottom: 0;
}

.pilar {
  display: block;
  width: 22px;
  height: 54px;
  background: #e0e0e0;
  border-radius: 8px 8px 6px 6px;
  box-shadow: 0 2px 8px #d0d0d0;
  border: 2px solid #d3d3d3;
  position: relative;
}
.pilar::before {
  content: "";
  display: block;
  position: absolute;
  top: -12px;
  left: -6px;
  width: 34px;
  height: 12px;
  background: #bdbdbd;
  border-radius: 8px 8px 0 0;
  border: 1.5px solid #dedede;
  z-index: 2;
}
.pilar::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -8px;
  left: -4px;
  width: 30px;
  height: 8px;
  background: #bdbdbd;
  border-radius: 0 0 6px 6px;
  border: 1.5px solid #dedede;
  z-index: 2;
}

.contacto-formulario {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}

.form-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-grupo label {
  font-size: 1.08rem;
  color: var(--color-primary-dark);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.form-grupo input,
.form-grupo textarea {
  padding: 10px 14px;
  border: 2px solid #bdbdbd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  color: var(--color-primary-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  outline: none;
}

.form-grupo input:focus,
.form-grupo textarea:focus {
  border-color: #888888;
  box-shadow: 0 2px 8px #e0e0e0;
}

.btn-contacto {
  margin-top: 10px;
  padding: 12px 0;
  background: #bdbdbd;
  color: var(--color-primary-dark);
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px #e0e0e0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.btn-contacto:hover {
  background: #888888;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px #bdbdbd;
}

.btn-contacto i {
  font-size: 1.1em;
}

@media (max-width: 700px) {
  .contacto-affedco {
    padding: 32px 0 18px 0;
  }
  .contacto-affedco h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
  .contacto-formulario-contenedor {
    padding: 25px;
    max-width: 80%;
  }
  .pilares-griegos, .pilares-inferiores {
    gap: 8px;
  }
  .pilar {
    width: 14px;
    height: 36px;
  }
  .pilar::before {
    width: 22px;
    height: 8px;
    left: -4px;
    top: -8px;
  }
  .pilar::after {
    width: 18px;
    height: 6px;
    left: -2px;
    bottom: -4px;
  }
}

/* Imágenes decorativas formulario de contacto */
.decorativo-form {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  gap: 0;
  padding: 0 8px;
}

.decorativo-form--abajo {
  margin-top: 18px;
  margin-bottom: 0;
}

.decorativo-img {
  width: 38px;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px #bdbdbd);
  transition: opacity 0.2s, filter 0.2s;
}

.decorativo-form .decorativo-img:nth-child(2) {
  align-self: flex-end;
}

.decorativo-form .decorativo-img:first-child {
  align-self: flex-start;
}

.decorativo-form .decorativo-img:last-child {
  align-self: flex-end;
}

@media (max-width: 600px) {
  .decorativo-form {
    padding: 0 2px;
    margin-bottom: 10px;
  }
  .decorativo-form--abajo {
    margin-top: 10px;
  }
  .decorativo-img {
    width: 26px;
  }
}





/* Animaciones de aparición lateral */
.animar-aparicion {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}

.animar-aparicion[data-anim="izq"] {
  transform: translateX(-60px);
}

.animar-aparicion[data-anim="der"] {
  transform: translateX(60px);
}

.animar-aparicion.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.animar-aparicion[data-anim="izq"] {
  transform: translateX(-40%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(.77,0,.18,1), opacity 0.8s;
}
.animar-aparicion[data-anim="der"] {
  transform: translateX(40%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(.77,0,.18,1), opacity 0.8s;
}
.animar-aparicion.visible {
  transform: none;
  opacity: 1;
}