/* coberturas.css
   Basado en tu CSS: header, footer, tipografía y acordeón de coberturas
*/

/* Fuente y variables */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Base mínima (tipografía / fondo) */
html,body { margin:0; padding:0; font-family: 'Poppins', sans-serif; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; background: var(--white); color: var(--gray-900);   scroll-behavior: smooth;
}

/* Contenedor general que usa tu HTML */
.container {
  max-width: 80rem; /* 1280px */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* -----------------
   HEADER
   - logo centrado visualmente
   - botón móvil a la derecha (posición absoluta)
   - menú desktop centrado en fila inferior
------------------*/
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* header-top: logo centrado y botón móvil a la derecha */
.header-top {
  position: relative;            /* para posicionar el botón a la derecha */
  display: block;
  text-align: center;            /* centra el logo */
  padding: 0.8rem 1rem;
}

.logo-box picture img {
    height: 60px;         /* 🔧 Tamaño fijo del logo */
    width: auto;          /* Mantiene proporción */
    display: inline-block;
    margin: 0 auto;
    vertical-align: middle;
  }

/* Wrapper del botón móvil colocado a la derecha */
.menu-mobile-btn-wrap {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Botón menu móvil */
.menu-mobile-btn {
  background: transparent;
  border: 0;
  color: var(--gray-800);
  cursor: pointer;
  padding: .25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icon sizes */
.icon-24 { width: 24px; height: 24px; }

/* ===== ANIMACIÓN FADE MENU MÓVIL ===== */
.mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem;
    z-index: 70;
  
    /* animación */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  }
  
  .mobile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
.mobile-menu-inner { display:flex; flex-direction:column; gap: .75rem; }
.mobile-link { color: var(--gray-800); font-weight:500; text-decoration:none; }
.mobile-link:hover { color: var(--primary-600); }

/* header-bottom: menú desktop */
.header-bottom {
  border-top: 1px solid rgba(0,0,0,0.05);
  background: var(--white);
}
.navbar { display:flex; justify-content:center; }
.menu-desktop {
  display: none; /* hidden on mobile, shown on desktop via media query */
  gap: 2rem;
  padding: .75rem 0;
}
.nav-link {
  color: var(--gray-800);
  font-weight: 500;
  text-decoration: none; /* importante: no subrayado */
  transition: color .2s ease;
  margin-left:40px;
  margin-right:40px;
}
.nav-link:hover { color: var(--primary-600); }

/* Mostrar menú-desktop y ocultar botón móvil en pantallas >= 1024px */
@media (min-width: 1150px) {
  .menu-desktop { display:flex; }
  .menu-mobile-btn-wrap { display: none; }
  .mobile-menu { display: none !important; }
}

/* pequeño helper para mostrar mobile menu cuando se elimina .hidden (tu JS) */
.hidden { display: none !important; }
.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.3s, box-shadow 0.3s;
  }
  
/* -----------------
   SECCIÓN preparaciones (centrada)
------------------*/
#preparaciones {
  padding: 7.5rem 1.5rem 4rem; /* espacio superior para compensar header fijo */
  max-width: 900px;
  margin: 0 auto;
}
.section-header.center {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra horizontalmente */
    justify-content: center; /* opcional: centra verticalmente si el contenedor tiene altura */
    text-align: center; /* respaldo */
}

/* título */
.section-title {
    font-size: clamp(1.75rem, 1.2vw + 1rem, 2.25rem);
    font-weight: 700;
    justify-content: center;
  }
  .section-underline {
    width: 5rem;
    height: 4px;
    background: var(--primary-600);
    margin: 1rem auto 0;
  }
  .section-description {
    max-width: 48rem;
    margin: 1.5rem auto 0;
    color: var(--gray-600);
    font-size: 1.125rem;
  }
/* -----------------
   Contenedor de filtros
-----------------*/
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  /* Input buscador */
  .filtros input[type="text"] {
    flex: 1 1 250px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .filtros input[type="text"]:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  }
  
  /* Selects */
  .filtros select {
    flex: 1 1 150px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--white);
    color: var(--gray-800);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;

  }
  
  .filtros select:focus {
    width: 100%;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  }
  
  /* Flecha personalizada para select */
  .filtros select {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='gray' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .filtros {
      flex-direction: column;
      gap: 0.75rem;
    }
  }/* ======================
   📊 Filtros Responsivos Mejorados
====================== */
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-inline: auto;
  }
  
  /* Campos base */
  .filtros input[type="text"],
  .filtros select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  /* 🌐 Desktop (≥1024px): fila horizontal */
  @media (min-width: 1024px) {
    .filtros {
      flex-direction: row;
      justify-content: space-between;
    }
    .filtros input[type="text"] {
      flex: 1 1 350px;
    }
    .filtros select {
      flex: 0 0 180px;
    }
  }
  
  /* 📲 Tablets (600px - 1023px): 2 columnas */
  @media (min-width: 600px) and (max-width: 1023px) {
    .filtros {
      flex-direction: row;
      justify-content: center;
    }
    .filtros input[type="text"],
    .filtros select {
      flex: 1 1 calc(50% - 0.5rem);
      min-width: 250px;
    }
  }
  
  /* 📱 Móviles (<600px): filtros verticales, compactos y con menú ajustado */
@media (max-width: 599px) {
    .filtros {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
      width: 100%;
      max-width: 100%;
      padding: 0 1rem; /* evita que se pegue a los bordes */
      box-sizing: border-box;
    }
  
    /* Input y Select */
    .filtros input[type="text"],
    .filtros select {
      width: 100%;
      max-width: 320px;       /* ajustamos un poco menos para que nunca se pase */
      height: 50px;           /* altura fija */
      max-height: 50px;       /* asegura límite */
      padding: 0 0.75rem;     /* texto centrado */
      font-size: 0.9rem;      /* tamaño más proporcionado */
      border-radius: 0.5rem;
      box-sizing: border-box; /* asegura que el padding no rompa el tamaño */
    }
  
    /* Ajuste del select */
    .filtros select {
      background-size: 1rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  
    /* Opciones del desplegable */
    .filtros select option {
      font-size: 0.9rem;
      padding: 0.4rem 0.75rem;
      white-space: nowrap;
    }
  
    /* Contenedor para prevenir que el desplegable se salga */
    .filtros select:focus {
      max-width: 100%;
    }
  }
  
  
/* ======================
   Acordeón / Coberturas
   - usa .acordeon-item, .acordeon-header y .acordeon-body
   - tu JS debe alternar: header .active  y body .open
====================== */
.acordeon-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  background: var(--white);
  transition: box-shadow .2s ease, transform .15s ease;
}
.acordeon-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.acordeon-header {
  width: 100%;
  background: var(--gray-50);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  transition: background .2s ease;
  text-align: left;
}

/* header hover */
.acordeon-header:hover { background: var(--gray-100); }



/* icon (el "+") */
.acordeon-header .icon {
  font-size: 1.25rem;
  color: var(--primary-600);
  line-height: 1;
  transition: transform .25s ease;
}

/* cuando tu JS agrega .active al header rotamos el icon */
.acordeon-header.active .icon {
  transform: rotate(45deg); /* + -> × (gira 45°) */
}
.acordeon-header .obra-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.acordeon-header .obra-social img {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    object-fit: contain;
}
/* cuerpo (cerrado por defecto) */
.acordeon-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  background: var(--white);
  padding: 0 1.25rem;
}

/* cuerpo abierto (JS agrega .open) */
.acordeon-body.open {
  padding: 1rem 1.25rem;
  /* max-height suficientemente grande para el contenido; ajustá si necesitas más */
  max-height: 400px;
}

/* texto */
.acordeon-body p {
  margin: 0;
  color: var(--gray-800);
  line-height: 1.6;
  font-weight: 400;
}
.acordeon-body ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0 0;
}

.acordeon-body li {
    margin-bottom: 0.3rem;
    line-height: 1.4;
}
/* Estilo para las listas dentro del acordeón */
.acordeon-body ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
  list-style: disc;
}

.acordeon-body li {
  margin-bottom: 0.45rem;
  line-height: 1.45;
  color: var(--gray-800);
  font-weight: 400;
  font-size: 0.99rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* Footer */
.footer {
    background:#193e8e ;
    color: #fff;
    padding: 3rem 1.5rem;
  }
  .footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
  }
  
  .footer-logo{ margin-bottom: 1rem; }
  .footer-text { color: #e5e7eb; margin-bottom: 1.5rem; }
  .footer-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
  .footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
  .footer-link { color: #e5e7eb; text-decoration: none; transition: color .3s ease; }
  .footer-link:hover { color: #ffffff; }
  .footer-bottom {
    border-top: 1px solid #ffffff;
    margin-top: 2.5rem; padding-top: 1.5rem;
    text-align: center;
    color: #fff;
  }
  
  @media (min-width: 768px) { /* md */
    .footer-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    .footer-col-span2 {
      grid-column: span 2;
    }
  }
  
  /* Espaciados heredados del diseño */
  .mb-6 { margin-bottom: 1.5rem; }
  
  /* Ajustes responsivos específicos */
  @media (min-width: 640px) { /* sm */
    .hero-cta { gap: 1rem; }
  }
  @media (min-width: 768px) { /* md */
    .section { padding: 5rem 3rem; }
  }
  
/* social icons in footer */
.social-row { display:flex; gap: .75rem; align-items:center; margin-top:.5rem; }
.footer-social {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px; height:42px;
  border-radius:9px;
  background: rgba(255,255,255,0.08);
  color: #d1d5db;
  text-decoration:none;
  transition: background .2s ease, transform .15s ease;
}
.footer-social:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }

/* icon inside footer social (svg) */
.footer-social svg { width:20px; height:20px; display:block; }
/* -----------------
  Pequeños ajustes UX
------------------*/
button.acordeon-header { background:transparent; border:0; font-family: inherit; }
a { color: inherit; } /* para que links hereden color y no rompan diseño */

/* Si necesitas que el body tenga espacio top por header fijo, podés ajustar: */
/* main { padding-top: 5.5rem; }  <- opcional si quitas tus <br> compensatorios */
/* ==== Ajustes para los selects en móviles ==== */
@media (max-width: 768px) {
    .filtros {
      flex-direction: column;
      align-items: stretch;
    }
  
    .filtros select,
    .filtros input {
      width: 100%;
      max-width: none;
      box-sizing: border-box;
    }
  
    /* Evita que el menú desplegable ocupe toda la pantalla en móviles */
    select {
      font-size: 16px; /* evita zoom automático en iOS */
      height: 42px;
    }
  
    /* Si querés que se vea como los inputs, podés añadir */
    select,
    input[type="text"] {
      background-color: #fff;
      border: 1px solid var(--gray-300);
      border-radius: var(--radius-md);
    }
  }
  /* =========================
   OPCIONES DEL SELECT (AJUSTE FINAL)
========================= */

/* Estilo base: mantiene ancho, color y evita overflow */
.filtros select option {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background-color: #fff;
    color: var(--gray-800);
    font-size: 1rem;
    border: none;
  }
  
  /* Hover (en desktop) */
  @media (hover: hover) {
    .filtros select option:hover {
      background-color: var(--primary-50);
    }
  }
  
  /* =========================
     AJUSTES RESPONSIVE
  ========================= */
  
  /* Tablets y pantallas medianas */
  @media (max-width: 992px) {
    .filtros select option {
      font-size: 0.975rem;
      padding: 7px 10px;
    }
  }
  
  /* Móviles */
  @media (max-width: 600px) {
    .filtros select option {
      font-size: 0.9rem;
      padding: 6px 8px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      max-width: 100vw; /* evita desbordes horizontales */
    }
  
    /* Ajuste extra para evitar zoom o salto visual */
    .filtros select:focus {
      font-size: 16px;
    }
  }
  

  /* Tamaño del logo en el footer */
.footer-col-span2 picture img {
    height: 60px;        /* 🔧 Fija el alto del logo */
    width: auto;         /* Mantiene la proporción */
    display: block;
    margin-bottom: 1rem;
  }
  
  /* Opcional: versión más pequeña en pantallas móviles */
  @media (max-width: 480px) {
    .footer-col-span2 picture img {
      height: 50px;
    }
  }
  