/* ============================================================
   VALLEJO LEGAL PARTNER — index.css (mejorado)
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    max-width: 1600px;
    margin: 0 auto;                          /* centrado correcto */
    background: linear-gradient(
        160deg,
        rgba(200, 222, 225, 0.9) 0%,
        rgba(217, 217, 217, 0.6) 50%,
        rgba(193, 209, 210, 0.8) 100%
    );
    box-sizing: border-box;
    min-height: 100vh;
}

/* ── Logo ─────────────────────────────────────────────────── */
#logo {
    width: 220px;
    height: auto;
}

/* ── Header ───────────────────────────────────────────────── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5% 20px 5%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 0.5px solid rgba(0, 20, 69, 0.1);
    font-family: "Libre Franklin", sans-serif;
}

/* ── Navegación ───────────────────────────────────────────── */
#navbar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    list-style: none;
}

nav ul li a {
    color: rgba(0, 20, 69, 0.85);
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 24px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

nav ul li a:hover {
    color: #0061F5;
    background-color: rgba(0, 97, 245, 0.07);
    border-bottom-color: #0061F5;
    /* sin cambio de font-size para evitar saltos */
}

/* ── Sección 1 — Hero ─────────────────────────────────────── */
#seccion1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    min-height: 85vh;

    background-image: 
        url(./img.svg/Ellipse\ 1.svg), 
        url(./img.svg/wooden-gavel\ 1.svg), 
        url(./img.svg/Line\ 1.svg), 
        url(./img.svg/Rectangle\ 3.svg), 
        url(./img.svg/Rectangle\ 4.svg);

    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;

    background-position: 
        center right,          /* círculo */
        calc(100% - 0px) 90%,  /* martillo */
        left top,              /* línea */
        center 100%,            /* rectángulo 3 */
        right 100%;         /* rectángulo 4 */

    background-size: 
        200px auto,            /* círculo */
        300px auto,            /* martillo */
        100% 20px,              /* línea: ancho completo, grosor 4px */
        100px auto 10px,            /* rectángulo 3 */
        800px auto;            /* rectángulo 4 */
}





.articulo1 {
    max-width: 480px;
    width: 100%;
    margin-top: 40px;
}

.articulo1 h1 {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #001445;
    margin-bottom: 20px;
}

.articulo1 p {
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: #7d7987;
    display: block;
    text-align: justify;
    margin-bottom: 8px;
}

.articulo2 {
    width: min(640px, 50%);
    aspect-ratio: 1 / 0.86;
}

.articulo2 img {
    width: 80%;
    height: auto;
}


/* ── Botón principal ──────────────────────────────────────── */
button,
.btn-primary {
    display: inline-block;
    width: auto;
    min-width: 180px;
    padding: 14px 36px;
    border-radius: 55px;
    background-color: #0061F5;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 32px;
    text-align: center;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

button:hover {
    background-color: #004fd6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 97, 245, 0.3);
}

button:active {
    transform: translateY(0);
}

/* ── Sección ¿Por qué elegirnos? (#SS) ───────────────────── */
#SS {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

#SS::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 20, 69, 0.75), rgba(0, 20, 69, 0.75)),
        url('./img.svg/artemis.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px;
    z-index: 0;
}

#SS > * {
    position: relative;
    z-index: 1;
}

#SS h2 {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 32px;
}

.elegirnos {
    padding: 52px 40px;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    font-family: "Inter", sans-serif;
}

.nosotros {
    display: flex;
    justify-content: center;
    gap: 32px;
    width: 100%;
    line-height: 1.5;
    list-style: none;
    color: #ffffff;
}

.nosotros li {
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 32px 28px;
    flex: 1 1 0;
    min-width: 200px;
    max-width: 340px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.nosotros li:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.18);
}

.nosotros i {
    font-size: 2.4rem;
    color: #92B4FA;
    margin-bottom: 8px;
    display: block;
}

.numero {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #92B4FA;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.años {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    display: block;
}

.texto-razon p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.fa-award {
    font-size: 0.1rem;
    opacity: 0;              /* decorativo, se mantiene oculto */
}

/* ── Sección Áreas de Práctica (#areas) ──────────────────── */
#areas {
    padding: 0 5%;
    margin-top: 80px;
    background-image: 
        url(./img.svg/Rectangle\ 12.svg),
        url(./img.svg/Rectangle\ 12.svg),
        url(./img.svg/Ellipse\ 8.svg),
        url(./img.svg/Ellipse\ 7.svg),
        url(./img.svg/law-composition\ 1.svg);

    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;

    background-position: 
        right 60%,
        right 0%,
        10% 70%,
        0px bottom,
        0px bottom;

    background-size: 
        100px auto,
        200px auto,
        150px auto,
        300px auto,
        300px auto;
}

.areas {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    padding: 40px 16px 24px;   /* reducido de 80px a 40px — el margin-top de #areas ya aporta separación */
    color: #001445;
    width: 100%;
    box-sizing: border-box;
}

#areas span {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    color: #0061F5;
    letter-spacing: 4px;
}

.caja-parrafo {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
    max-width: 680px;
    width: 95%;
    margin: 0 auto 40px auto;
    color: #555;
    box-sizing: border-box;
}

.caja-parrafo li {
  list-style-type: none;        /* quitamos la viñeta por defecto */
  position: relative;
  padding-left: 25px;           /* espacio para el ícono */
}

.caja-parrafo li::before {
  content: "\f24e";             /* código del ícono (ejemplo: fa-balance-scale) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;             /* necesario para íconos sólidos */
  position: absolute;
  left: 0;
  color: #004080;               /* color del ícono */
}

.agenda {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    color: #555;
}

.contenedor2 {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3, minmax(280px, 360px));
    gap: 24px;
    padding: 20px 5% 60px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.caja {
    background-color: #FDFDFD;
    border-radius: 22px;
    padding: 32px 28px;
    border: 0.5px solid rgba(146, 180, 250, 0.5);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0, 20, 69, 0.06);
    position: relative;
    overflow: hidden;
}

.caja:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 97, 245, 0.12);
    border-color: rgba(0, 97, 245, 0.4);
}

.caja .contenedor2-icon {
    font-size: 2.8rem;
    color: #0061F5;
    margin-bottom: 4px;
}

.contenedor2 div i {
    font-size: 2.8rem;
    color: #0061F5;
    width: auto;
    height: auto;
    margin-bottom: 8px;
}

.contenedor2 div {
    display: flex;
    flex-direction: column;
}

.caja h3 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    color: #001445;
    line-height: 1.3;
}

.caja p {
    text-align: left;
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ── Sección Servicios (#servicios) ──────────────────────── */
#servicios {
    min-height: 60vh;
    background-image: url("./img.svg/Recurso 27.svg");
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin-top: 80px;
    padding: 60px 5%;
    box-sizing: border-box;
    position: relative;
}

#servicios::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 20, 69, 0.82) 0%,
        rgba(0, 20, 69, 0.70) 100%
    );
    z-index: 0;
}

#servicios > * {
    position: relative;
    z-index: 1;
}

.contitulo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service {
    width: 100%;
}

/* ── Título h4 — Variante 2: subrayado al hover ───────────── */
h4 {
    font-family: "Libre Franklin", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(8deg, rgba(0, 97, 245, 1) 0%, rgba(146, 180, 250, 1) 41%, rgba(255, 255, 255, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-align: center;
    display: inline-block;
    padding-bottom: 18px;
    cursor: default;
}

h4::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 10%;
    height: 3px;
    width: 32px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
}

h4 span {
    position: absolute;
    bottom: 6px;
    left: 10%;
    height: 3px;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, #0061F5, #92B4FA);
    opacity: 0;
    transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

h4:hover::after {
    width: 80%;
    opacity: 0;
}

h4:hover span {
    width: 80%;
    opacity: 1;
}

/* ── Grid de cards ────────────────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 380px));
    gap: 28px;
    margin-top: 56px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* ── Card — Opción A: translúcida, hover iluminado ────────── */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(146, 180, 250, 0.2);
    border-radius: 14px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    /* sin min-height fijo: se adapta al contenido */
    transition: background 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease;
    cursor: default;
}

/* Borde izquierdo acento — oculto en reposo */
.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #0061F5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Se elimina el ::after con blur que causaba parpadeo en scroll */

.card:hover {
    background: rgba(146, 180, 250, 0.12);
    border-color: rgba(146, 180, 250, 0.55);
    transform: translateY(-6px);
}

.card:hover::before {
    opacity: 1;
}

/* ── Ícono ─────────────────────────────────────────────────── */
.card i {
    font-size: 3.2rem;
    color: #92B4FA;
    margin-top: 4px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.card:hover i {
    color: #BDCFFE;
}

/* ── Título de la card ────────────────────────────────────── */
.card h5 {
    font-family: "Libre Franklin", sans-serif;
    color: #ffffff;             /* blanco: siempre legible sobre fondo oscuro */
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

/* ── Texto de la card ─────────────────────────────────────── */
.card p {
    text-align: center;
    width: 100%;
    color: rgba(255, 255, 255, 0.6);   /* blanco semitransparente en reposo */
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s ease;
}

.card:hover p {
    color: rgba(255, 255, 255, 0.85);  /* se aclara al hover */
}

/* ── Footer / Contacto ───────────────────────────────────── */
footer {
    margin-top: 0;                          /* #servicios ya tiene su propio padding-bottom */
    background: rgba(255, 255, 255, 0.45); /* fondo suave que separa visualmente de #servicios oscuro */
}

/* Contenedor general del footer */
.foot {
  display: flex;
  flex-direction: column; /* primero en columna para móviles */
  align-items: center;
  background-color: #002244; /* ejemplo de fondo oscuro */
  padding: 40px 20px;
  gap: 20px;
}

.foot {
  display: flex;
  flex-direction: column; /* en móviles se ve en columna */
  align-items: center;
  background-color: #002244; /* ejemplo de fondo */
  padding: 40px 20px;
  gap: 20px;
}

.footer-section {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #ffffff;
  text-align: center;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin: 6px 0;
}

.footer-section li a {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section li a:hover {
  color: #ffd700; /* dorado al pasar el mouse */
}

.footer-section p {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #cccccc;
}

/* En pantallas grandes: logo a la izquierda, enlaces a la derecha */
@media (min-width: 768px) {
  .foot {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-section {
    text-align: left;
  }
}


#contactos {
    padding: 72px 5% 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-image:
        url(./img.svg/Rectangle\ 5.svg),
        url(./img.svg/Rectangle\ 6.svg);
    background-repeat: no-repeat, no-repeat;
    background-position: top left, top center;
    background-size: 400px auto, 700px auto;
}

#contactos > article:first-child {
    text-align: center;
}

#contactos > article:first-child .areas {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    padding-top: 0;
    color: #001445;
}

.color-acento {
    color: #0061F5;
}

.global {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    align-items: start;
}

/* Cuadrícula de datos de contacto */
.contenedor5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.datos {
    background-color: #F3F7FF;
    border: 0.5px solid rgba(0, 97, 245, 0.15);
    border-radius: 14px;
    padding: 24px 20px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.datos:hover {
    box-shadow: 0 6px 20px rgba(0, 97, 245, 0.1);
    transform: translateY(-4px);
}

.datos div i {
    font-size: 2.4rem;
    padding: 12px 0 8px;
    color: #0061F5;
    display: block;
}

.datos h6 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #001445;
    margin-bottom: 6px;
}

.datos p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* ── Formulario de contacto ──────────────────────────────── */
.contenedor6 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(560px, 100%);
}

.label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Labels visibles encima del input */
.nombres,
.email,
.asunto,
.mensaje {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #444;
    margin-bottom: 2px;
}

.input {
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 20, 69, 0.2);
    padding: 14px 16px;
    background: #ffffff;
    color: #001445;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.input:focus {
    border-color: #0061F5;
    box-shadow: 0 0 0 3px rgba(0, 97, 245, 0.12);
}

.enviarmensaje {
    margin-top: 4px;
}

.enviarmensaje button,
button.enviarmensaje {
    width: 100%;
    background-color: #0061F5;
    color: #fff;
    border: none;
    border-radius: 55px;
    padding: 16px 0;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
}

.enviarmensaje button:hover {
    background-color: #004fd6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 97, 245, 0.3);
}

/* ── Pie de página final ─────────────────────────────────── */
.foot {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(./img.svg/Recurso\ 28.svg);
    background-size: cover;
    background-position: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);  /* separador sutil del #contactos */
    width: 100%;
    padding: 28px 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    gap: 24px;
}

.vallejo {
    height: 80px;
    width: auto;
}

.list li a:hover {
    color: #92B4FA;
}

.final {
    margin-top: 0;
    padding-bottom: 80px; /* altura aproximada del banner */
}

/* Contenedor principal de la página legal */
.legal-content {
  max-width: 900px;        /* ancho limitado para mejor lectura */
  margin: 60px auto;       /* centrado con espacio arriba/abajo */
  padding: 0 20px;
  font-family: "Inter", sans-serif;
  line-height: 1.8;
  color: #333;
}

/* Cada sección legal */
.legal-section {
  margin-bottom: 40px;     /* separación entre bloques */
}

.legal-section h3 {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #001445;          /* azul institucional */
  margin-bottom: 12px;
  text-align: left;
}

.legal-section p {
  font-size: 15px;
  font-weight: 300;
  text-align: justify;
  color: #555;
}

/* Botón regresar */
.btn-primary {
  margin-top: 20px;
  display: inline-block;
}

.aviso-datos {
  font-family: "Inter", sans-serif;
  font-size: 12px;          /* pequeño y discreto */
  color: #666;              /* gris suave */
  text-align: center;
  margin: 8px 0 12px;       /* espacio compacto */
}

.aviso-tarifa {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #666;              /* gris suave */
  text-align: center;
  margin: 8px 0 14px;
  line-height: 1.6;
}


.aviso-tarifa a {
  color: #0061F5;           /* azul institucional */
  text-decoration: none;
  font-weight: 600;
}

.aviso-tarifa a:hover {
  text-decoration: underline;
}


.aviso-datos a {
  color: #0061F5;           /* azul institucional */
  text-decoration: none;
  font-weight: 600;
}

.aviso-datos a:hover {
  text-decoration: underline;
}


/* ── Sección Blog (comentada, por si se activa) ──────────── */
#blog {
    color: #fff;
    text-align: center;
    margin-top: 120px;
}

#blog .caja3 {
    color: #001445;
    font-size: 2.8rem;
    font-weight: 700;
    font-family: "Libre Franklin", sans-serif;
}

.contenedor4 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 48px;
}

.contenedor4 .box {
    padding: 36px 28px;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    border-radius: 15px;
    width: clamp(280px, 30%, 360px);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    box-shadow: 5px 5px 16px rgba(0, 0, 0, 0.4);
}

.box h5 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-family: "Inter", sans-serif;
    color: #fff;
}

.contenedor4 .box:first-child {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(img.svg/Recurso\ 27.svg);
}

.contenedor4 .box:nth-child(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(img.svg/img.svg);
}

.contenedor4 .box:nth-child(3) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(img.svg/Recurso\ 29.svg);
}

.contenedor4 button {
    background-color: #1c2332;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    margin-top: 16px;
    width: auto;
    padding: 10px 24px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media screen and (max-width: 1100px) {
    .cards {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
    .contenedor2 {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media screen and (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 16px 5%;
    }

    nav {
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    #seccion1 {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 40px 5%;
        text-align: center;
    }

    .articulo1 {
        margin-top: 0;
    }

    .articulo1 p,
    .articulo1 h1 {
        text-align: center;
    }

    .articulo2 {
        width: 80%;
        min-height: 200px;
    }

    #SS {
        margin-top: 60px;
    }

    .nosotros {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .nosotros li {
        max-width: 100%;
        width: 100%;
    }

    .elegirnos {
        padding: 36px 20px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contenedor2 {
        grid-template-columns: 1fr;
        padding: 20px 5% 40px;
    }

    h4 {
        font-size: 2.4rem;
    }

    .global {
        grid-template-columns: 1fr;   /* apila tarjetas + formulario en móvil */
        gap: 32px;
    }

    .contenedor5 {
        width: 100%;
    }

    .contenedor6 {
        width: 100%;
    }

    .input {
        width: 100%;
    }

    .foot {
        flex-direction: column;       /* logo arriba, links abajo en móvil */
        align-items: center;
        padding: 24px 5%;
        gap: 16px;
    }

    .list {
        justify-content: center;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .contenedor5 {
        grid-template-columns: 1fr;
    }

    .areas {
        font-size: 1.6rem;
        padding: 24px 16px 20px;    /* ajustado al nuevo padding-top de .areas */
    }

    h4 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .numero {
        font-size: 3.8rem;
    }
}
