/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* CLASE GENERAL PARA TODAS LAS SECCIONES */
.seccion {
  padding: 60px 20px;
  margin-bottom: 60px;
}

/* CONTENEDOR REUTILIZABLE */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  background-color: #275e95;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo img {
  height: 85px;
  width: auto;
}

.menu a {
  color: #fff;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.menu a:hover,
.menu a.activo {
  color: #ffcc00;
}

.menu a.activo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffcc00;
}

/* INICIO */
.inicio {
            background: url('./View/img/Fondo1.png') no-repeat center center/cover;
            padding: 100px 20px;
            color: white;
            position: relative;
            z-index: 1;
 }

.inicio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.inicio-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.texto-inicio {
  flex: 1 1 50%;
}

.texto-inicio h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.texto-inicio p {
  font-size: 1.3em;
}

.imagen-inicio {
  flex: 1 1 40%;
  text-align: center;
}

.imagen-inicio img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* SEPARADOR MOTIVACIONAL */
.separador {
  background: linear-gradient(135deg, #003366, #00509e);
  color: white;
  text-align: center;
  padding: 60px 30px;
  font-size: 1em;
  font-style: italic;
  margin-bottom: 60px;
}

.separador-2 {
  background: linear-gradient(135deg, #003366, #00509e);
  height: 50px;
  margin: 60px 0;
}



/* Hero */
.hero {
    position: relative;
    text-align: center;
    color: white;
}

.hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    opacity: 0.9;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-logo {
    width: 200px;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    background-color: #1a2d5a;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #00aaff;
}

.btn-secondary {
    background-color: #007acc;
}

/* Política */
.policy {
    padding: 50px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.policy h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a2d5a;
}

/* Accordion */
.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.accordion-header {
    background-color: #1a2d5a;
    color: #fff;
    padding: 15px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.accordion-header:hover {
    background-color: #007acc;
}

.accordion-body {
    padding: 15px;
    display: none;
    background-color: #f1f1f1;
}

/* FOOTER */
.footer {
  background-color: #275e95;
  color: white;
  padding: 60px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 200px;
  margin: 10px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 10px;
}

.footer-left p {
  margin: 5px 0;
}

.footer-center ul {
  list-style: none;
  padding: 0;
}

.footer-center ul li {
  margin: 8px 0;
}

.footer-center ul li a {
  color: white;
  text-decoration: none;
}

.footer-center ul li a:hover {
  text-decoration: underline;
}

.footer-right h3 {
  margin-bottom: 10px;
}

.social-icons a img {
  width: 24px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.social-icons a img:hover {
  transform: scale(1.2);
}

.footer-center p {
  font-size: 1.2em;
  color: #9a9a97;
  margin-bottom: 10px;
}

.footer-left i {
  margin-right: 10px;
  color: #fc2020;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .inicio-container,
  .mision-vision .container,
  .servicio-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  header {
    flex-direction: column;
    text-align: center;
  }
}

/* Estilo general del ícono hamburguesa */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: center;
  }

  .menu a {
    margin: 15px 0;
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .menu.active {
    display: flex;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* CARRUSEL DEL HERO */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Parallax al hacer scroll */
.hero.scrolled .hero-slide.active {
    transform: scale(1.1);
    transition: transform 0.5s ease-out;
}

/* Animación de logo flotante */
.hero-logo {
    animation: flotacionSuave 3.5s ease-in-out infinite;
    transform-origin: center;
}

/* Movimiento suave tipo “idle” */
@keyframes flotacionSuave {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-12px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

/* Zoom del hero al hacer scroll */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-slide.active {
    transform: scale(1);
    transition: transform 0.8s ease-out;
}

.hero.zoomed .hero-slide.active {
    transform: scale(2.05); /* aumenta el zoom al bajar el scroll */
}

/* --- FONDO DEGRADADO AZUL + GRIS --- */
.privacidad-section {
    background: linear-gradient(135deg, #002f76d5, #506c7880); 
    padding: 40px 0;         /* Espacio interno */
    border-radius: 10px;     /* Suave */
    color: white;            /* Para contraste */
}

/* Ajuste del título */
.privacidad-section h2 {
    color: #e3f2fd !important;  /* Azul claro */
    font-size: 26px;
    text-align: center;
    margin-bottom: 25px;
}

/* --- HACER EL ACORDEÓN MÁS CHICO Y CENTRADO --- */
.privacidad-section .accordion-item {
    width: 70%;
    margin: 10px auto;
    padding: 0;
    border-radius: 6px;

    /* Efecto vidrio sobre el degradado */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Encabezado */
.privacidad-section .accordion-header {
    padding: 10px 14px;
    font-size: 15px;
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
}

/* Cuerpo */
.privacidad-section .accordion-body {
    padding: 8px 12px;
    font-size: 14px;
    color: #000000; 
}

/* Textos */
.privacidad-section .accordion-body ul,
.privacidad-section .accordion-body li,
.privacidad-section .accordion-body p {
    text-align: justify;
    margin: 4px 0;
}

.privacidad-section .accordion-body ul {
    padding-left: 25px;
    margin: 10px auto;
    text-align: left;
}

/* Animación */
.accordion-item.open .accordion-body {
    max-height: 250px !important;
    padding: 8px !important;
}

.accordion-header {
    position: relative;
    padding-right: 30px; /* espacio para el icono */
}

/* Icono "+" */
.accordion-header::after {
    content: "+";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

/* Cuando el acordeón está abierto → cambiar a "-" */
.accordion-item.open .accordion-header::after {
    content: "-";
}

.br {
    display: block;
    height: 10px;
}
