/* ==========================================================================
   1. VARIABLES DE DISEÑO
   ========================================================================== */


:root {
/* Paleta Cromática */
--color-fondo-primario: #0a0f1d;
--color-fondo-superficie: #111827;
--color-fondo-header: rgba(10, 15, 29, 0.75);
--color-texto-principal: #f8fafc;
--color-texto-secundario: #94a3b8;
--color-acento: #0ea5e9;
--color-acento-hover: #38bdf8;
--color-borde: rgba(255, 255, 255, 0.08);

/* Tipografía Fluida */
    --fuente-principal: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --fs-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-logo: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);


/* Espaciado Modular Fluido */
    --sp-xs: clamp(0.5rem, 0.45rem + 0.2vw, 0.625rem);
    --sp-sm: clamp(0.75rem, 0.7rem + 0.25vw, 1rem);
    --sp-md: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
    --sp-lg: clamp(1.5rem, 1.2rem + 1vw, 2.5rem);


/* Estructura & Elevación */
    --ancho-maximo: 1200px;
    --radio-sm: 8px;
    --radio-full: 9999px;
    --z-header: 1000;
    --transicion-suave: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

::selection {
    background-color: rgba(14, 165, 233, 0.35);
    color: #ffffff;
}


/* ==========================================================================
   2. RESET MODERNO
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; 
    color-scheme: dark;
}

body {
    min-height: 100dvh;
    font-family: var(--fuente-principal);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-texto-principal);
    background-color: var(--color-fondo-primario);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;

}

ul {
    list-style: none;
}


/* ==========================================================================
   HEADER Y NAVEGACIÓN 
   ========================================================================== */

/* 1. Contenedor Maestro (Barra fija superior) */
.header {
    position: sticky;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: rgba(10, 15, 29, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 2. Rejilla de 3 Columnas: [Logo (Izq)] --- [Menú (Centro)] --- [Botón (Der)] */
.header__contenedor {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* 3. Columna Izquierda: Logo y Nombre */
.header__marca {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8fafc;
    text-decoration: none;
}

.header__logo {
    display: block;
    width: auto;
    height: 50px;
    object-fit: contain;
}

.header__logo-acento {
    color: #0ea5e9;
}

/* 4. Columna Central: Contenedor Nav */
.header__nav {
    justify-self: center;
    display: flex;
    align-items: center;
}

/* 5. MENÚ HORIZONTAL (Selector dual para garantizar que funcione siempre) */
.header__menu,
.header nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header__item,
.header nav ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 6. Enlaces del Menú */
.header__enlace {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: color 200ms ease, transform 200ms ease;
}

.header__enlace:hover,
.header__enlace:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

/* 7. Columna Derecha: Botón CTA Contáctanos */
.header__accion {
    justify-self: end;
    display: flex;
    align-items: center;
}

.btn-contacto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background-color: #0ea5e9;
    border: 1px solid transparent;
    border-radius: 9999px;
    transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-contacto:hover,
.btn-contacto:focus-visible {
    background-color: #0284c7;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.35);
    transform: translateY(-1px);
    outline: none;
}


/* ==========================================================================
   SECCIÓN HERO (#inicio)
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 72px); /* Altura completa descontando el header */
    padding: clamp(3rem, 2rem + 4vw, 6rem) 1.5rem;
    overflow: hidden;
    background-color: var(--color-fondo-primario, #0a0f1d);
    /* Resplandor ambiental de fondo (Radial Glow) */
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(2, 132, 199, 0.12) 0%, transparent 50%);
}

.hero__contenedor {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
    width: 100%;
    max-width: 1200px;
}

/* En pantallas de escritorio (>= 992px), pasamos a 2 columnas */
@media (min-width: 992px) {
    .hero__contenedor {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* 1. Columna de Texto */
.hero__contenido {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.875rem;
    font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 9999px;
}

.hero__titulo {
    font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #f8fafc;
}

.hero__acento-gradiente {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #818cf8 100%);

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
    
}

.hero__subtitulo {
    max-width: 540px;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    color: #94a3b8;
}

.hero__acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
}

/* Botones del Hero */
.btn-primario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background-color: #0ea5e9;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
    transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-primario:hover,
.btn-primario:focus-visible {
    background-color: #0284c7;
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.45);
    transform: translateY(-2px);
    outline: none;
}

.btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.btn-secundario:hover,
.btn-secundario:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    outline: none;
}

/* 2. Columna Visual / Imagen */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero__tarjeta-preview {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero__imagen {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}


/* ==========================================================================
   SECCIÓN SERVICIOS (#servicios)
   ========================================================================== */

.servicios {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: clamp(4rem, 3rem + 4vw, 7rem) 1.5rem;
    background-color: #0a0f1d;
}

.servicios__contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

/* 1. Cabecera de la Sección */
.servicios__cabecera {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 680px;
    text-align: center;
}

.servicios__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 9999px;
}

.servicios__titulo {
    font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.servicios__subtitulo {
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    color: #94a3b8;
}

/* 2. Rejilla de Tarjetas */
.servicios__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 480px));
    justify-content: center;
    width: 100%;
    gap: 2rem;
}

/* 3. Componente Tarjeta de Servicio */
.servicio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.servicio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 16px 36px -10px rgba(14, 165, 233, 0.15);
}

/* Cabecera Interna de la Tarjeta */
.servicio-card__cabecera {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.servicio-card__etiqueta {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.12);
    border-radius: 4px;
}

.servicio-card__titulo {
    font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.65rem);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.servicio-card__descripcion {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #94a3b8;
}

/* Lista de Características / Beneficios */
.servicio-card__lista {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.servicio-card__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.servicio-card__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.15);
    border-radius: 50%;
}

.servicio-card__texto strong {
    font-weight: 600;
    color: #ffffff;
}

/* Botón de Acción de la Tarjeta */
.servicio-card__accion {
    display: flex;
    width: 100%;
    margin-top: auto;
}

.btn-cotizar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background-color: #0ea5e9;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-cotizar:hover,
.btn-cotizar:focus-visible {
    background-color: #0284c7;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
    transform: translateY(-2px);
    outline: none;
}



/* ==========================================================================
   SECCIÓN PORTAFOLIO (#portafolio)
   ========================================================================== */

.portafolio {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: clamp(4rem, 3rem + 4vw, 7rem) 1.5rem;
    background-color: #0b1120;
}

.portafolio__contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

/* 1. Cabecera */
.portafolio__cabecera {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 680px;
    text-align: center;
}

.portafolio__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 9999px;
}

.portafolio__titulo {
    font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.portafolio__subtitulo {
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    color: #94a3b8;
}

/* 2. Rejilla de Proyectos (Responsive sin Media Queries) */
.portafolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    width: 100%;
    gap: clamp(1.5rem, 1rem + 1vw, 2.5rem);
}

/* 3. Tarjeta de Proyecto Individual */
.proyecto-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.proyecto-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 16px 36px -10px rgba(14, 165, 233, 0.12);
}

/* Contenedor Visual y Zoom de Imagen */
.proyecto-card__visual {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #1e293b;
}

.proyecto-card__imagen {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.proyecto-card:hover .proyecto-card__imagen {
    transform: scale(1.04);
}

/* Información de la Tarjeta */
.proyecto-card__cuerpo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
}

.proyecto-card__categoria {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #38bdf8;
}

.proyecto-card__titulo {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.proyecto-card__descripcion {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #94a3b8;
}


/* ==========================================================================
   SECCIÓN CONTACTO (#contacto)
   ========================================================================== */

.contacto {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: clamp(4rem, 3rem + 4vw, 7rem) 1.5rem;
    background-color: #0a0f1d;
}

.contacto__contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

/* 1. Cabecera */
.contacto__cabecera {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 640px;
    text-align: center;
}

.contacto__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 9999px;
}

.contacto__titulo {
    font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.contacto__subtitulo {
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    color: #94a3b8;
}

/* 2. Tarjeta Envolvente del Formulario */
.contacto__tarjeta {
    width: 100%;
    padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

/* 3. Formulario y Grid de Campos */
.contacto__formulario {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .contacto__formulario {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Los campos de ancho completo ocupan las 2 columnas */
    .contacto__campo {
        grid-column: span 2;
    }

    /* Los campos marcados como --medio ocupan 1 sola columna */
    .contacto__campo--medio {
        grid-column: span 1;
    }
}

.contacto__campo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contacto__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
}

/* 4. Estilización de Controles (Inputs, Select, Textarea) */
.contacto__input,
.contacto__select,
.contacto__textarea {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f8fafc;
    background-color: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.contacto__input::placeholder,
.contacto__textarea::placeholder {
    color: #64748b;
}

.contacto__input:focus,
.contacto__select:focus,
.contacto__textarea:focus {
    background-color: #0f172a;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

/* Flecha personalizada para el <select> */
.contacto__select-envoltorio {
    position: relative;
    width: 100%;
}

.contacto__select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.75rem;
}

.contacto__select option {
    background-color: #111827;
    color: #f8fafc;
}

.contacto__textarea {
    resize: vertical;
    min-height: 130px;
}

/* 5. Botón de Envío */
.btn-enviar {
    grid-column: 1 / -1; /* Ocupa todo el ancho disponible */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 2rem;
    margin-top: 0.5rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background-color: #0ea5e9;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
    transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-enviar:hover,
.btn-enviar:focus-visible {
    background-color: #0284c7;
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.45);
    transform: translateY(-2px);
    outline: none;
}

.btn-enviar:active {
    transform: translateY(0);
}


/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS (#sobre-nosotros)
   ========================================================================== */

.nosotros {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: clamp(4rem, 3rem + 4vw, 7rem) 1.5rem;
    background-color: #0b1120;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nosotros__contenedor {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    width: 100%;
    max-width: 1200px;
}

@media (min-width: 992px) {
    .nosotros__contenedor {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* 1. Columna de Texto */
.nosotros__texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.nosotros__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 9999px;
}

.nosotros__titulo {
    font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.nosotros__parrafo {
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.75;
    color: #94a3b8;
}

/* 2. Columna de Pilares Visuales */
.nosotros__pilares {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.pilar-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: transform 200ms ease, border-color 200ms ease;
}

.pilar-card:hover {
    transform: translateX(4px);
    border-color: rgba(14, 165, 233, 0.3);
}

.pilar-card__indicador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #38bdf8;
    background-color: rgba(14, 165, 233, 0.12);
    border-radius: 8px;
}

.pilar-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pilar-card__titulo {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.pilar-card__descripcion {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #94a3b8;
}


/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */

.footer {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 1.5rem 2rem;
    background-color: #070b14;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__contenedor {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    gap: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

/* 1. Rejilla de Columnas Superiores */
.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: clamp(2rem, 1.5rem + 2vw, 3rem);
    width: 100%;
}

@media (min-width: 992px) {
    .footer__grid {
        grid-template-columns: 1.8fr 1fr 1.2fr;
    }
}

.footer__columna {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

/* Marca / Logo en el Footer */
.footer__logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer__logo-texto {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.footer__logo-acento {
    color: #0ea5e9;
}

.footer__descripcion {
    max-width: 360px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

/* Títulos de las Columnas */
.footer__subtitulo {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
}

/* Listas de Enlaces y Contacto */
.footer__lista {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Normalización semántica de address */
.footer__contacto {
    font-style: normal;
}

.footer__icono {
    font-size: 1rem;
    color: #38bdf8;
}

.footer__enlace,
.footer__contacto-enlace {
    color: #94a3b8;
    text-decoration: none;
    transition: color 200ms ease, transform 200ms ease;
}

.footer__enlace:hover,
.footer__enlace:focus-visible,
.footer__contacto-enlace:hover,
.footer__contacto-enlace:focus-visible {
    color: #38bdf8;
    transform: translateX(3px);
    outline: none;
}

/* 2. Barra Inferior de Copyright */
.footer__inferior {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

@media (min-width: 640px) {
    .footer__inferior {
        flex-direction: row;
        text-align: left;
    }
}

.footer__credito {
    color: #94a3b8;
}



/* ==========================================================================
   TEXTAREA CON TAMAÑO FIJO (SIN REDIMENSIÓN)
   ========================================================================== */

.contacto__textarea {
    /* 1. Modelo de caja */
    display: block;
    width: 100%;
    height: 140px; /* Altura fija predeterminada */
    min-height: 140px;
    max-height: 140px;
    padding: 0.85rem 1.15rem;
    resize: none; /* Elimina el icono y bloquea la redimensión */
    box-sizing: border-box;

    /* 2. Tipografía */
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: #f8fafc;

    /* 3. Visual / Decoración */
    background-color: #0b1120;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;

    /* 4. Transiciones */
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.contacto__textarea::placeholder {
    color: #64748b;
}

.contacto__textarea:hover {
    background-color: #0f172a;
    border-color: rgba(14, 165, 233, 0.5);
}

.contacto__textarea:focus {
    background-color: #0f172a;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}


/* ==========================================================================
   CABECERA DEL CAMPO Y CONTADOR DE CARACTERES
   ========================================================================== */

.contacto__campo-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* El label ya no necesita margen inferior al estar dentro del contenedor flex */
.contacto__campo-cabecera .contacto__label {
    margin-bottom: 0;
}

/* Indicador visual del contador */
.contacto__contador {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    transition: color 200ms ease;
}

/* Estado cuando el usuario se acerca al límite (>= 450 caracteres) */
.contacto__contador.limite-cercano {
    color: #f59e0b; /* Color ámbar de advertencia */
}

/* Estado cuando se alcanza el límite máximo */
.contacto__contador.limite-alcanzado {
    color: #ef4444; /* Color rojo */
    font-weight: 700;
}

