/* ============ NUEVA IDENTIDAD VISUAL BOSEFO S.A. ============ */
/* Fuente Poppins (archivos locales en la carpeta /fonts) */
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Medium.ttf') format('truetype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Bold.ttf') format('truetype'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-ExtraBold.ttf') format('truetype'); font-weight:800; font-style:normal; font-display:swap; }

/* ============ VARIABLES DE MARCA ============ */
:root {
    /* Colores Manual de Marca */
    --brand-blue: #496aad;
    --brand-blue-dark: #3a5a8a;
    --brand-blue-deep: #2c4570;
    --brand-yellow: #e7b218;
    --brand-yellow-soft: #f5e6c3;
    --white: #ffffff;
    --grey-bg: #f0f2f5;
    --grey-text: #595a5b;
    --dark-text: #333333;
    
    /* Tipografía */
    --font-main: 'Poppins', sans-serif;
    --font-title: 'Poppins', sans-serif;
    
    --radius: 12px;
    --shadow: 0 8px 30px rgba(73, 106, 173, 0.12);
    --shadow-hover: 0 15px 45px rgba(73, 106, 173, 0.2);

    /* Variables del diseño de barra superior, header y hero */
    --azul:        #2c5da8;
    --azul-oscuro: #1e4a8f;
    --azul-topbar: #2557a7;
    --amarillo:    #f5b62f;
    --amarillo-osc:#e5a91f;
    --texto:       #3f3f3f;
    --gris-nav:    #4a4a4a;
    --blanco:      #ffffff;

    /* TAMAÑO DEL LOGO */
    --logo-height: 118px;   /* alto del logo (define el alto de las dos franjas) */
    --logo-col:    400px;   /* ancho de la columna del logo */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--logo-height) + 10px); /*Donde se queda el desplazamiento*/
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
section { padding: 40px 6%; }

.container { max-width: 1200px; margin: 0 auto; }

/* ============ ANIMACIONES SCROLL ============ */
.reveal { opacity: 0; transform: translateY(35px); transition: all .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ ETIQUETAS DE SECCIÓN ============ */
.tag {
    display: inline-block; background: #f0f4ff; color: var(--brand-blue);
    font-weight: 700; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
    padding: 7px 18px; border-radius: 50px; margin-bottom: 16px;
}
.section-head h2 {
    font-family: var(--font-title); font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    color: var(--brand-blue); line-height: 1.25; margin-bottom: 14px;
}
.section-head p { color: var(--grey-text); max-width: 640px; }
.section-head.center { text-align: center; }
.section-head.center p { margin: 0 auto; }

/* ============================================================
   CONTENEDOR SUPERIOR - GRID DE 2 COLUMNAS
   Columna izquierda : logo (ocupa el alto de las DOS franjas)
   Columna derecha   : franja azul (arriba) + header/menú (abajo)
   ============================================================ */
.top-header{
    display:grid;
    grid-template-columns:var(--logo-col) 1fr;
    grid-template-rows:auto auto;
    background:var(--blanco);
    position:sticky;
    top:0;
    z-index:999;
}

/* ---- ZONA DEL LOGO ---- */
.logo-zone{
    grid-column:1;
    grid-row:1 / 3;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--blanco);
    padding:10px 14px;
}

.logo{
    display:inline-flex;
    align-items:center;
    line-height:0;
}

.logo img{
    height:calc(var(--logo-height) - 20px);
    width:auto;
    max-width:100%;
    object-fit:contain;
    display:block;
}

/* ---- BARRA SUPERIOR AZUL ---- */
.topbar{
    grid-column:2;
    grid-row:1;
    background:var(--azul-topbar);
    color:var(--blanco);
    font-size:0.8rem;
    font-weight:500;
    border-radius:0 0 0 12px;
}

.topbar__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:0.55rem 6% 0.55rem 3rem;
}

.topbar__group{
    display:flex;
    align-items:center;
    gap:2rem;
    flex-wrap:wrap;
}

.topbar__item{
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
    white-space:nowrap;
    transition:opacity .2s ease;
}

a.topbar__item:hover{ opacity:0.8; }

.topbar__item svg{
    width:16px;
    height:16px;
    flex-shrink:0;
}

.topbar__social{
    display:flex;
    align-items:center;
    gap:1.1rem;
}

.topbar__social a{
    display:inline-flex;
    transition:opacity .2s ease, transform .2s ease;
}

.topbar__social a:hover{ opacity:0.75; transform:translateY(-1px); }

.topbar__social svg{
    width:15px;
    height:15px;
}

/* ---- HEADER / MENÚ ---- */
.header{
    grid-column:2;
    grid-row:2;
    background:var(--blanco);
    z-index:100;
}

.header__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:2rem;
    padding:1.1rem 6% 1.1rem 3rem;
}

.nav__list{
    list-style:none;
    display:flex;
    align-items:center;
    gap:2.6rem;
}

.nav__link{
    position:relative;
    font-size:0.92rem;
    font-weight:500;
    letter-spacing:0.06em;
    color:var(--gris-nav);
    padding:0.35rem 0;
    transition:color .2s ease;
}

.nav__link::after{
    content:'';
    position:absolute;
    left:0; bottom:0;
    width:0;
    height:2px;
    background:var(--amarillo);
    transition:width .25s ease;
}

.nav__link:hover,
.nav__link.active{ color:var(--amarillo-osc); }

.nav__link:hover::after,
.nav__link.active::after{ width:100%; }

/* Botón hamburguesa (móvil) */
.nav-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:42px;
    height:42px;
    background:none;
    border:none;
    cursor:pointer;
    padding:8px;
}

.nav-toggle span{
    display:block;
    width:100%;
    height:2.5px;
    background:var(--azul);
    border-radius:2px;
    transition:transform .3s ease, opacity .3s ease;
}

.nav-toggle.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero{
    position:relative;
    min-height:calc(100vh - 130px);
    display:flex;
    align-items:center;
    overflow:hidden;
    padding:0;               /* anula el padding genérico de "section" */
}

.hero__bg{
    position:absolute;
    inset:0;
    background:
        linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35)),
        url('../images/hero.jpg') center right / cover no-repeat,
        linear-gradient(120deg, #dfe7f2 0%, #b9c9e2 50%, #8fa8cd 100%);
    z-index:1;
}

.hero__overlay{
    position:absolute;
    inset:0;
    z-index:2;
    background:linear-gradient(
        to right,
        rgba(255,255,255,1)    0%,
        rgba(255,255,255,1)   28%,
        rgba(255,255,255,0.92) 42%,
        rgba(255,255,255,0.55) 60%,
        rgba(255,255,255,0.15) 78%,
        rgba(255,255,255,0)   100%
    );
}

.hero__content{
    position:relative;
    z-index:3;
    padding:3rem 6%;
    max-width:1000px;
}

.hero__content .btn-cta{
    margin: 0 2rem 1rem 0;   /* derecha 1rem, abajo 1rem */
}

.hero__since{
    display:block;
    font-size:1.25rem;
    font-weight:600;
    color:var(--azul);
    margin-bottom:0.6rem;
}

.hero__title{
    font-size:clamp(2.1rem, 4.6vw, 3.9rem);
    font-weight:800;
    line-height:1.15;
    letter-spacing:0.01em;
    color:var(--azul);
    margin-bottom:1.4rem;
}

.hero__text{
    font-size:clamp(0.95rem, 1.4vw, 1.18rem);
    font-weight:400;
    line-height:1.75;
    color:var(--texto);
    max-width:640px;
    margin-bottom:2.4rem;
}

/* Botón CTA amarillo */
.btn-cta{
    display:inline-flex;
    align-items:center;
    gap:1rem;
    background:var(--amarillo);
    color:#3a3a3a;
    font-size:1rem;
    font-weight:600;
    letter-spacing:0.05em;
    padding:0.65rem 0.65rem 0.65rem 1.8rem;
    border-radius:60px;
    box-shadow:0 6px 18px rgba(245,182,47,0.4);
    transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-cta:hover{
    background:var(--amarillo-osc);
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(245,182,47,0.5);
}

.btn-cta__arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:50%;
    background:var(--azul);
    color:var(--blanco);
    flex-shrink:0;
}

.btn-cta__arrow svg{
    width:20px;
    height:20px;
}

/* ============ BOTONES GENERALES (se usan en la tarjeta de WhatsApp de Equipo) ============ */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px;
    border-radius: 50px; font-weight: 700; font-size: .95rem; transition: all .3s; cursor: pointer; border: none;
}

.btn-yellow { background: var(--brand-yellow); color: #fff; box-shadow: 0 10px 30px rgba(255,221,0,.35); }
.btn-yellow:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(255,221,0,.5); }

.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-outline:hover { background: #fff; color: var(--brand-blue); }

/* ============ RESPONSIVE: BARRA SUPERIOR, HEADER Y HERO ============ */
@media (max-width: 1180px){
    .nav__list{ gap:1.6rem; }
    .nav__link{ font-size:0.85rem; }
    .topbar__group{ gap:1.2rem; }
}

@media (max-width: 980px){
    .top-header{
        grid-template-columns:1fr;
    }

    .logo-zone{
        grid-column:1;
        grid-row:1;
        padding:8px 6%;
        justify-content:flex-start;
    }

    .topbar{
        grid-column:1;
        grid-row:2;
        border-radius:0;
    }

    .topbar__inner{
        padding:0.5rem 6%;
        justify-content:center;
    }

    .topbar__item--static{ display:none; }

    .header{
        grid-column:1;
        grid-row:3;
    }

    .header__inner{
        padding:0.8rem 6%;
    }

    .nav{
        position:fixed;
        top:0;
        right:-100%;
        width:min(320px, 85vw);
        height:100vh;
        background:var(--blanco);
        box-shadow:-8px 0 30px rgba(30,60,120,0.15);
        padding:6rem 2.5rem 2rem;
        transition:right .35s ease;
        z-index:99;
    }

    .nav.open{ right:0; }

    .nav__list{
        flex-direction:column;
        align-items:flex-start;
        gap:1.6rem;
    }

    .nav__link{ font-size:1.05rem; }

    .nav-toggle{
        display:flex;
        position:relative;
        z-index:101;
    }

    .hero{ min-height:calc(100vh - 210px); }
}

@media (max-width: 600px){
    :root{
        --logo-height: 90px;
    }

    .topbar__social{ display:none; }
    .topbar__item span{ font-size:0.72rem; }

    .hero__content{ text-align:left; }
    .btn-cta{ font-size:0.9rem; padding-left:1.4rem; }
    .btn-cta__arrow{ width:36px; height:36px; }
}

/* ============ BOTÓN "SOLICITAR BODEGA" EN EL MENÚ ============ */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amarillo);
  color: #3a3a3a;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.4rem;
  border-radius: 60px;
  box-shadow: 0 4px 12px rgba(245, 182, 47, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--amarillo-osc);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 182, 47, 0.45);
  color: #3a3a3a;
}

.nav-cta i {
  color: var(--azul);
  font-size: 1rem;
}

@media (max-width: 980px) {
  .nav-cta {
    margin-top: 0.5rem;
    padding: 0.65rem 1.5rem;
    justify-content: center;
    width: 100%;
  }
}

/* ============ NOSOTROS ============ */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 20px; }
.about-card {
    background: #fff; border-radius: var(--radius); padding: 20px 32px;
    box-shadow: var(--shadow); border-top: 5px solid var(--brand-yellow); transition: all .4s;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.about-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.about-card .icon {
    width: 64px; height: 64px; border-radius: 16px; background: var(--brand-blue);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.about-card .icon i { color: var(--brand-yellow); font-size: 1.5rem; }
.about-card h3 { font-family: var(--font-title); color: var(--brand-blue); font-size: 1.2rem; margin-bottom: 5px; text-align: center; }
.about-card p { color: var(--grey-text); font-size: .95rem; text-align: justify; text-justify: inter-word; }

/* ============ SOLICITUD (FORMULARIO MYSQL - NO TOCAR LÓGICA) ============ */
.solicitud-titulo {    
    margin-bottom: 6px; 
    font-family: var(--font-title); 
    font-size: clamp(1.1rem, 1.5rem, 1.8rem);
    color: var(--brand-blue); 
    line-height: 1.25; 
}

#about { 
    background: var(--grey-bg); 
    position: relative; 
    overflow: hidden; 
    padding: 10px 0; 
}

#about::before {
    content: ''; 
    position: absolute; 
    left: -140px; 
    bottom: -140px; 
    width: 420px; 
    height: 420px;
    background: radial-gradient(circle, rgba(16,27,122,.08), transparent 70%); 
    border-radius: 50%;
}

.solicitud-wrap { 
    display: grid; 
    grid-template-columns: 0.5fr 0.5fr; 
    gap: 36px;                    
    align-items: start; 
    position: relative; 
    z-index: 2; 
}

/* ===== FORMULARIO ===== */
.form-card {
    background: #fff; 
    border-radius: 20px; 
    padding: 24px 28px;           
    box-shadow: var(--shadow);
}

.form-card h2 {
    font-family: var(--font-title); 
    color: var(--brand-blue);
    font-size: 1.25rem;           
    margin-bottom: 4px;
}

.form-card .subtitle { 
    color: var(--grey-text); 
    font-size: .85rem; 
    margin-bottom: 18px; 
}

.form-control {
    width: 100%; 
    padding: 11px 14px;           
    margin-bottom: 5px;
    border: 2px solid #E4E8F2; 
    border-radius: 10px; 
    font-family: var(--font-body);
    font-size: .78rem; 
    color: var(--dark-text); 
    background: #FAFBFE;
    transition: all .3s; 
    outline: none; 
    resize: vertical;
}

.form-control:focus { 
    border-color: var(--brand-blue); 
    background: #fff; 
    box-shadow: 0 0 0 3px rgba(16,27,122,.08); 
}

.form-control::placeholder { 
    color: #A0A7BC; 
    font-size: .72rem; 
}

.char-count { 
    display: block; 
    text-align: right; 
    color: var(--grey-text); 
    font-size: .52rem !important; 
    margin: -22px 0 -6px; 
}

.check-title {
    display: block; 
    text-align: center; 
    font-size: .75rem; 
    color: var(--brand-blue);
    font-weight: 700; 
    margin: 12px 0 -6px;
}

/* Checklist más compacto */
.checklist-moderno {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.checklist-moderno .opcion {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(41, 41, 72, 0.15);
}

.checklist-moderno .opcion:hover {
  transform: translateY(-3px);
  background: #f3f6ff;
  box-shadow: 0 5px 12px rgba(27, 35, 196, 0.15);
  border-color: #1b23c4;
}

.checklist-moderno input[type="checkbox"] {
  accent-color: #1b23c4;
  transform: scale(1.15);
  cursor: pointer;
  margin-right: 8px;
}

.checklist-moderno label {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}

.checklist-moderno input[type="checkbox"]:checked + span {
  color: #1b23c4;
  font-weight: 700;
}

.checklist-moderno .comentario {
  font-size: 9px;
  color: #ca0d1c;
  margin-top: 6px;
  display: none;
  line-height: 1.35;
}

.checklist-moderno .opcion:hover .comentario {
  display: block;
}

.file-zone {
    border: 2px dashed #C4CCE0; 
    border-radius: 10px; 
    padding: 8px;
    text-align: center; 
    margin-bottom: 8px; 
    background: #FAFBFE; 
    transition: border-color .3s;
}

.file-zone:hover { border-color: var(--brand-blue); }
.file-zone label { display: block; font-size: .65rem; color: var(--grey-text); cursor: pointer; }
.file-zone label strong { color: var(--brand-blue); }
.file-zone .file-hint { font-size: .55rem; color: #A0A7BC; margin-bottom: 1px; display: block; }
.file-zone input[type="file"] { font-size: .72rem; margin: 0 auto; }

.recaptcha-enviar { display: flex; align-items: center; gap: 12px; margin-top: 6px; }

#btnEnviar {
     width: 100%; 
     background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
     color: #fff; 
     font-family: var(--font-body); 
     font-size: 0.78rem; 
     font-weight: 700;
     padding: 11px; 
     border: none; 
     border-radius: 50px; 
     cursor: pointer;
     transition: all .3s; 
     box-shadow: 0 8px 22px rgba(16,27,122,.28); 
     letter-spacing: .4px;
 }

#btnEnviar:hover { 
     background: var(--brand-yellow); 
     color: var(--brand-blue-dark); 
     transform: translateY(-2px); 
     box-shadow: 0 12px 28px rgba(255,221,0,.35); 
 }

#resultado { 
     margin-top: 8px; 
     background: #E8FBEF; 
     border: 2px solid #34C77B; 
     border-radius: 10px; 
     padding: 6px; 
     text-align: center; 
 }

h7 { color: #147A46; font-size: 0.78rem; font-weight: 800; }

/* ===== TARJETA DE POLÍTICA ===== */
.policy-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
    border-radius: 20px;
    padding: 24px 22px;            
    color: #ffffff;
    min-height: 470px;             
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-logo {
    max-width: 85px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
}

.policy-title {
    font-family: var(--font-title);
    color: var(--brand-yellow);
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    text-align: center;
}

.policy-body p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    text-justify: inter-word;
    margin: 0;
}

/* Modal resultado */
.cuadrado-azul {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: linear-gradient(150deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(7,12,58,.5);
    border: 1px solid rgba(255,221,0,.35); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.cuadrado-azul h4 { color: var(--brand-yellow); font-family: var(--font-title); font-size: 1.45rem; margin-bottom: 6px; }
.cuadrado-azul h5 { color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 600; }
.cuadrado-azul h6 { color: rgba(255,255,255,.55); font-size: .7rem; font-weight: 400; margin-top: 6px; line-height: 1.5; }

#numero2-container {
     color: var(--brand-blue-dark); 
     background: var(--brand-yellow); 
     display: inline-block;
     font-size: 1.9rem; 
     font-weight: 800; 
     font-family: var(--font-title);
     padding: 8px 32px; 
     border-radius: 12px; 
     margin: 8px 0;
 }

 .solicitud-side img { 
      border-radius: 20px; 
      box-shadow: var(--shadow-hover); 
      width: 100%; 
      object-fit: cover; 
 }

.solicitud-side .info-box {
    background: var(--brand-blue); 
    border-radius: 16px; 
    padding: 22px; 
    margin-top: 18px; 
    color: #fff;
}

.solicitud-side .info-box h4 { 
    font-family: var(--font-title); 
    color: var(--brand-yellow); 
    margin-bottom: 8px; 
    font-size: 1rem; 
}

.solicitud-side .info-box p { font-size: .85rem; color: rgba(255,255,255,.8); }
.solicitud-side .info-box a { color: var(--brand-yellow); font-weight: 700; }

/* Responsive */
@media (max-width: 560px) {
    .policy-card {
        padding: 20px 16px;
        min-height: auto;
    }
    .policy-header {
        flex-direction: column;
        text-align: center;
    }
    .policy-title {
        text-align: center;
    }
    .policy-logo {
        max-width: 80px;
    }
    .policy-body p {
        font-size: 0.8rem;
        text-align: left;
    }
}

/* ============ SISTEMAS ============ */
.sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.sys-card {
     background: #fff; border-radius: var(--radius); overflow: hidden;
     box-shadow: var(--shadow); transition: all .4s;
}
.sys-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.sys-card img { height: 180px; width: 100%; object-fit: cover; }
.sys-card .body { padding: 12px 22px; }
.sys-card h3 { font-family: var(--font-title); font-size: 1.02rem; color: var(--brand-blue); margin-bottom: 8px; }
.sys-card p { font-size: .86rem; color: var(--grey-text); }

/* ============ SERVICIOS ============ */
#testimonial { background: var(--brand-blue-deep); }
#testimonial .section-head h2 { color: #fff; }
#testimonial .section-head p { color: rgba(255,255,255,.65); }
.serv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 20px; }
.serv-card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius); overflow: hidden; display: flex; transition: all .4s;
}
.serv-card:hover { background: rgba(255,255,255,.09); transform: translateY(-6px); border-color: rgba(255,221,0,.4); }
.serv-card img { width: 200px; object-fit: cover; flex-shrink: 0; }
.serv-card .body { padding: 18px 6px; }
.serv-card h3 { font-family: var(--font-title); color: var(--brand-yellow); font-size: 1.1rem; margin-bottom: 10px; }
.serv-card p { color: rgba(255,255,255,.72); font-size: .88rem; }

/* ============ EQUIPO ============ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 10px; }
.team-card {
    background: #fff; border-radius: var(--radius); padding: 32px 28px;
    box-shadow: var(--shadow); transition: all .4s; border-left: 5px solid var(--brand-yellow);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.team-card .role-icon {
    width: 54px; height: 54px; background: var(--brand-yellow-soft); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.team-card .role-icon i { color: var(--brand-blue); font-size: 1.3rem; }
.team-card h3 { font-family: var(--font-title); font-size: 1.05rem; color: var(--brand-blue); margin-bottom: 8px; }
.team-card p.desc { color: var(--grey-text); font-size: .87rem; margin-bottom: 16px; }
.team-card .contact-line { font-size: .84rem; color: var(--brand-blue); font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; word-break: break-all; }
.team-card .contact-line i { color: var(--brand-yellow); background: var(--brand-blue); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; flex-shrink: 0; }

/* ============ CONTACTO ============ */
#contact { background: var(--grey-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; margin-top: 20px; align-items: start; }
.contact-grid form { background: #fff; padding: 40px; border-radius: 24px; box-shadow: var(--shadow); }
.contact-grid form input[type="submit"] {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)); color: #fff;
    font-weight: 700; border: none; cursor: pointer; padding: 16px; border-radius: 50px;
    transition: all .3s; font-size: 1rem;
}
.contact-grid form input[type="submit"]:hover { background: var(--brand-yellow); color: var(--brand-blue-dark); transform: translateY(-3px); }
.map-box { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 420px; }
.map-box iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ============ FOOTER ============ */
footer { background: var(--brand-blue-deep); color: rgba(255,255,255,.72); padding: 70px 6% 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 44px; max-width: 1200px; margin: 0 auto; }
footer h4 { color: #fff; font-family: var(--font-title); font-size: 1rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--brand-yellow); border-radius: 3px; }
footer p, footer li { font-size: .88rem; margin-bottom: 10px; }
footer ul { list-style: none; }
footer ul a:hover { color: var(--brand-yellow); }
.footer-logo { background: #fff; display: inline-block; padding: 10px 16px; border-radius: 12px; margin-bottom: 18px; }
.footer-logo img { height: 46px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; transition: all .3s; color: #fff;
}
.social-row a:hover { background: var(--brand-yellow); color: var(--brand-blue); transform: translateY(-4px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 55px; padding: 22px 0;
    text-align: center; font-size: .82rem; color: rgba(255,255,255,.45);
}

/* ============ BOTÓN WHATSAPP ============ */
.wa-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 900;
    width: 60px; height: 60px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.7rem; box-shadow: 0 10px 30px rgba(37,211,102,.45);
    transition: transform .3s; animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.12); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .sys-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .serv-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .policy-card { min-height: 400px; } 
}
@media (max-width: 860px) {
    .solicitud-wrap, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    section { padding: 64px 5%; }
    .sys-grid, .team-grid, .checklist-moderno { grid-template-columns: 1fr; }
    .serv-card { flex-direction: column; }
    .serv-card img { width: 100%; height: 190px; }
    .form-card { padding: 30px 22px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============ ESTILOS TABLA REPORTE Y PAGINACIÓN ============ */
.tabla-reporte {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-family: var(--font-main);
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(10, 17, 82, 0.05);
    border-radius: 12px;
    overflow: hidden;
}
.tabla-reporte th, .tabla-reporte td {
    border: 1px solid #eef0f5;
    padding: 12px 15px;
    text-align: left;
}
.tabla-reporte th {
    background-color: var(--brand-blue);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.tabla-reporte tr:nth-child(even) {
    background: var(--grey-bg);
}
.tabla-reporte tr:hover {
    background: var(--brand-yellow-soft);
}

/* Botones Editar/Guardar dentro de la tabla */
.btn-editar-guardar {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px;
    transition: all 0.3s;
}
.btn-editar-guardar:hover {
    background: var(--brand-yellow);
    color: var(--brand-blue-dark);
    transform: translateY(-2px);
}

/* Botones de Paginación */
.boton-paginacion {
    background: #fff;
    border: 1px solid #E4E8F2;
    color: var(--brand-blue);
    margin: 0 3px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}
.boton-paginacion:hover:not(:disabled) {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
    transform: translateY(-2px);
}
.boton-paginacion:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.boton-paginacion.actual {
    background: var(--brand-yellow);
    color: var(--brand-blue-dark);
    border-color: var(--brand-yellow);
}
/* --- Boton de archivo - copiado --- */
.file-upload-btn {
     display: inline-flex; /* importante, no block */
     width: fit-content; /* que solo mida lo del texto */
     margin: 8px auto 0 auto;
     max-width: fit-content;
     align-self: flex-start; /* por si tu file-zone es flex */
     background-color: var(--brand-blue);
     color: #FFFFFF !important;
     padding: 5px 10px; /* antes tenias 14px, por eso se veia ancho */
     border-radius: 6px;
     font-size: 0.75rem;
     font-weight: 600;
     cursor: pointer;
     margin-top: 8px;
     transition: all 0.2s ease;
     white-space: nowrap; /* que no se parta en 2 lineas */
}
.file-upload-btn:hover {
     background-color: var(--brand-yellow);
     color: var(--brand-blue-dark) !important;
}
.file-zone input[type="file"] { display: none; }
#file-name-display {
     display: block;
     margin-top: 4px;
     font-size: 0.75rem;
     font-weight: 600;
     color: var(--brand-blue);
 }
