/* ===================== */
/* 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 {
    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);
}




/* ===================== */
/* HISTORIA AFFEDCO      */
/* ===================== */
.historia-affedco {
  width: 100%;
  min-height: 420px;
  padding-top: 160px;
  padding-bottom: 60px;
  background: 
    linear-gradient(120deg, rgba(245,245,245,0.92) 60%, rgba(0, 0, 0, 0.1) 100%),
    url('/nosotros/photos/historia/1.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0 0 60px 60px;
  position: relative;
}

.historia-affedco h2 {
  font-size: 2.3rem;
  color: var(--color-primary-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 2px 0 #e0e0e0;
  z-index: 2;
}

.historia-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 32px rgba(60,60,60,0.13);
  border: 3px solid #e0e0e0;
  max-width: 700px;
  width: 90%;
  margin: 0 auto;
  padding: 38px 32px 32px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.historia-icono {
  min-width: 64px;
  min-height: 64px;
  background: #e0e0e0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--color-primary);
  box-shadow: 0 2px 12px #bdbdbd44;
  margin-right: 12px;
}

.historia-contenido {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.historia-contenido h3 {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.historia-contenido p {
  font-size: 1.08rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Detalle decorativo tipo "bloques de construcción" */
.historia-card::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: 90px;
  height: 90px;
  background: #e0e0e0;
  border-radius: 18px;
  opacity: 0.18;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}
.historia-card::after {
  content: "";
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 70px;
  height: 70px;
  background: #e0e0e0;
  border-radius: 18px;
  opacity: 0.13;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}

/* Responsive */
@media (max-width: 900px) {
  .historia-affedco {
    min-height: 520px;
    padding: 38px 0 24px 0;
  }
  .historia-affedco h2 {
    font-size: 1.5rem;
    padding-top: 150px;
    margin-bottom: 22px;
  }
  .historia-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 10px 16px 10px;
    gap: 12px;
  }
  .historia-icono {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 2rem;
    min-width: 44px;
    min-height: 44px;
  }
  .historia-contenido h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .historia-contenido p {
    font-size: 0.98rem;
  }
}



@media (max-width: 600px) {
    .historia-affedco h2 {
        font-size: 1.5rem;
        padding-top: 50px;
        margin-bottom: 22px;
    }
}


/* ===================== */
/* ESTRATEGIA AFFEDCO    */
/* ===================== */
.estrategia-affedco {
  width: 100%;
  min-height: 320px;
  padding: 60px 0 40px 0;
  background: 
    linear-gradient(120deg, rgba(245,245,245,0.96) 10%, rgba(0,0,0,0.07) 100%),
    url('/nosotros/photos/estrategia/1.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  border-radius: 90px 90px 90px 90px;
  align-items: center;
  position: relative;
}

.estrategia-affedco h2 {
  font-size: 2.1rem;
  color: var(--color-primary-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 2px 0 #e0e0e0;
  z-index: 2;
}

.estrategia-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 32px rgba(60,60,60,0.13);
  border: 3px solid #e0e0e0;
  width: 90%;
  margin: 0 auto;
  padding: 38px 32px 32px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.estrategia-icono {
  min-width: 64px;
  min-height: 64px;
  background: #e0e0e0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--color-primary);
  box-shadow: 0 2px 12px #bdbdbd44;
  margin-right: 12px;
}

.estrategia-contenido {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.estrategia-contenido h3 {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.estrategia-contenido ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.estrategia-contenido ul li {
  font-size: 1.08rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 0;
  position: relative;
}

.estrategia-contenido ul li::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #e0e0e0;
  border-radius: 3px;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 2px 6px #bdbdbd44;
}

.estrategia-contenido ul li:last-child {
  margin-bottom: 0;
}

/* Detalle decorativo tipo "bloques de construcción" */
.estrategia-card::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: 70px;
  height: 70px;
  background: #e0e0e0;
  border-radius: 18px;
  opacity: 0.16;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}
.estrategia-card::after {
  content: "";
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 50px;
  height: 50px;
  background: #e0e0e0;
  border-radius: 18px;
  opacity: 0.11;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}

/* Responsive */
@media (max-width: 900px) {
  .estrategia-affedco {
    min-height: 180px;
    padding: 32px 0 18px 0;
  }
  .estrategia-affedco h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
  }
  .estrategia-card {
    flex-direction: column;
    align-items: center;
    padding: 22px 10px 16px 10px;
    gap: 12px;
  }
  .estrategia-icono {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 2rem;
    min-width: 44px;
    min-height: 44px;
  }
  .estrategia-contenido h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .estrategia-contenido ul li {
    font-size: 0.98rem;
    margin-bottom: 8px;
  }
}



/* ===================== */
/* FILOSOFÍA AFFEDCO     */
/* ===================== */
.filosofia-affedco {
  width: 100%;
  padding: 60px 0 40px 0;
  background: var(--color-accent-2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.filosofia-affedco h2 {
  font-size: 2.1rem;
  color: var(--color-primary-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 2px 0 #e0e0e0;
}

.filosofia-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 90%;
  margin: 0 auto;
  justify-content: center;
  justify-items: center; /* Centra las cards en su celda */
  align-items: stretch;
}

.filosofia-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(60,60,60,0.13);
  border: 3px solid #e0e0e0;
  padding: 32px 18px 28px 18px;
  text-align: center;
  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;
  min-height: 320px;
  overflow: hidden;
}

.filosofia-card:hover {
  box-shadow: 0 12px 36px rgba(60,60,60,0.18);
  border-color: #bdbdbd;
  background: #f5f5f5;
  transform: translateY(-8px) scale(1.025);
}

.filosofia-icono {
  width: 56px;
  height: 56px;
  background: #e0e0e0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--color-primary);
  box-shadow: 0 2px 12px #bdbdbd44;
  margin-bottom: 18px;
  margin-top: 2px;
}

.filosofia-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  letter-spacing: 0.5px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.filosofia-card p {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Detalle decorativo tipo "bloques de construcción" */
.filosofia-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  width: 48px;
  height: 48px;
  background: #e0e0e0;
  border-radius: 12px;
  opacity: 0.13;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}
.filosofia-card::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  background: #e0e0e0;
  border-radius: 12px;
  opacity: 0.09;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}

/* Responsive */
@media (max-width: 1100px) {
  .filosofia-cards {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    width: 80%;
    justify-items: center;
  }
}
@media (max-width: 700px) {
  .filosofia-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 80%;
    justify-items: center;
  }
}



/* ================================ */
/* COMPROMISO Y VALORES AFFEDCO     */
/* ================================ */
.compromiso-valores-affedco {
  width: 100%;
  padding: 60px 0 40px 0;
  background: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 90px 90px 0 0;
}

.compromiso-valores-affedco h2 {
  font-size: 2.1rem;
  color: var(--color-primary-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 2px 0 #e0e0e0;
}

.compromiso-valores-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card base */
.compromiso-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(60,60,60,0.13);
  border: 3px solid #e0e0e0;
  padding: 32px 18px 28px 18px;
  text-align: center;
  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;
  min-height: 320px;
  overflow: hidden;
}

/* Card con fondo destacado */
.card-fondo {
  background: linear-gradient(135deg, #f5f5f5 60%, #e0e0e0 100%);
  border: 3px solid #bdbdbd;
  box-shadow: 0 8px 32px rgba(136,136,136,0.10);
}

/* Card con borde decorativo */
.card-borde {
  border: 3px dashed #bdbdbd;
  background: #fff;
}

/* Card horizontal (icono lateral) */
.card-horizontal {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  padding: 24px 18px 24px 18px;
  min-height: 160px;
  gap: 18px;
}

.card-horizontal .compromiso-icono {
  margin-bottom: 0;
  margin-right: 18px;
}

.card-horizontal h3,
.card-horizontal p {
  text-align: left;
  margin-left: 0;
}

/* Card fondo alterno */
.card-fondo2 {
  background: linear-gradient(120deg, #e0e0e0 60%, #f5f5f5 100%);
  border: 3px solid #e0e0e0;
}

/* Iconos */
.compromiso-icono {
  width: 54px;
  height: 54px;
  background: #e0e0e0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--color-primary);
  box-shadow: 0 2px 12px #bdbdbd44;
  margin-bottom: 18px;
  margin-top: 2px;
  transition: background 0.2s, color 0.2s;
}

.compromiso-card:hover {
  box-shadow: 0 12px 36px rgba(60,60,60,0.18);
  border-color: #bdbdbd;
  background: #f5f5f5;
  transform: translateY(-8px) scale(1.025);
}

.compromiso-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  letter-spacing: 0.5px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.compromiso-card p {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Detalles decorativos tipo bloques */
.compromiso-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  width: 38px;
  height: 38px;
  background: #e0e0e0;
  border-radius: 10px;
  opacity: 0.13;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}
.compromiso-card::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  background: #e0e0e0;
  border-radius: 10px;
  opacity: 0.09;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}

/* Responsive */
@media (max-width: 1100px) {
  .compromiso-valores-cards {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    width: 98%;
  }
  .compromiso-card {
    min-height: 0;
    padding: 28px 12px 22px 12px;
  }
  .compromiso-valores-affedco {
    padding: 38px 0 24px 0;
  }
  .compromiso-valores-affedco h2 {
    font-size: 1.4rem;
    margin-bottom: 22px;
  }
}
@media (max-width: 700px) {
  .compromiso-valores-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 99%;
    justify-items: center;
  }
  .card-horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 22px 10px 16px 10px;
  }
  .card-horizontal .compromiso-icono {
    margin-right: 0;
    margin-bottom: 12px;
  }
}






/* Sección Misión y Visión */
.mision-vision-affedco {
  width: 100%;
  padding: 60px 0 40px 0;
  background: var(--color-accent-2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mision-vision-affedco h2 {
  font-size: 2.1rem;
  color: var(--color-primary-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 2px 0 #e0e0e0;
}

.mision-vision-cards {
  display: flex;
  gap: 32px;
  width: 92%;
  max-width: 900px;
  justify-content: center;
  margin: 0 auto;
}

.mv-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(60,60,60,0.13);
  border: 2.5px solid #e0e0e0;
  padding: 38px 28px 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 260px;
  max-width: 400px;
  flex: 1 1 0;
  transition: box-shadow 0.22s, transform 0.18s, border-color 0.18s, background 0.18s;
  position: relative;
  overflow: hidden;
}

.mv-card:hover {
  box-shadow: 0 12px 36px rgba(60,60,60,0.18);
  border-color: #219150;
  background: #e0f7ef; /* Nuevo color de fondo al hacer hover */
  transform: translateY(-8px) scale(1.025);
}

.mv-card:hover .mv-icono {
  background: #219150; /* Fondo del icono al hacer hover */
  color: #fff;         /* Color del icono al hacer hover */
}

.mv-icono {
  width: 54px;
  height: 54px;
  background: #e0e0e0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--color-primary);
  box-shadow: 0 2px 12px #bdbdbd44;
  margin-bottom: 18px;
  margin-top: 2px;
  transition: background 0.2s, color 0.2s;
}

.mv-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  letter-spacing: 0.5px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.mv-card p {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Detalle decorativo tipo bloques */
.mv-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  width: 38px;
  height: 38px;
  background: #e0e0e0;
  border-radius: 10px;
  opacity: 0.13;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}
.mv-card::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  background: #e0e0e0;
  border-radius: 10px;
  opacity: 0.09;
  z-index: 1;
  box-shadow: 0 4px 24px #bdbdbd44;
}

/* Responsive */
@media (max-width: 900px) {
  .mision-vision-cards {
    flex-direction: column;
    gap: 22px;
    width: 100%;
    height: 600px;
    align-items: center;
  }
  .mv-card {
    max-width: 80%;
    min-width: 0;
    padding: 28px 12px 22px 12px;
  }
  .mision-vision-affedco {
    padding: 38px 0 24px 0;
  }
  .mision-vision-affedco h2 {
    font-size: 1.4rem;
    margin-bottom: 22px;
  }
}







.animar-aparicion {
  opacity: 0;
  transform: none;
  transition: transform 0.8s cubic-bezier(.77,0,.18,1), opacity 0.8s;
  will-change: transform, opacity;
}
.animar-aparicion[data-anim="izq"] {
  transform: translateX(-40%);
}
.animar-aparicion[data-anim="der"] {
  transform: translateX(40%);
}
.animar-aparicion.visible {
  opacity: 1;
  transform: none;
}
body, html {
  overflow-x: hidden;
}