/* style.css */

/*
  Tabla de Contenidos:
  1. Variables Globales (Raíz)
  2. Estilos Globales y Reinicios
  3. Tipografía
  4. Clases de Utilidad y Animación
  5. Estilos del Header / Navegación
  6. Estilos de Secciones Específicas
     - Hero
     - Statistics
     - About Us
     - Instructors (Analistas)
     - Clientele (Media)
     - Resources
     - Contact
  7. Estilos del Footer
  8. Estilos de Páginas Específicas
     - success.html
     - privacy.html & terms.html
  9. Consultas de Medios (Diseño Responsivo)
*/

/* =================================== */
/* 1. Variables Globales (Raíz)      */
/* =================================== */

:root {
  /* Esquema de Color Analógico */
  --primary-color: #014f86; /* Azul profundo principal */
  --secondary-color: #2a6f97; /* Azul más claro */
  --accent-color: #89c2d9; /* Azul cielo para acentos */
  --dark-color: #012a4a; /* Azul muy oscuro para texto */
  --light-color: #f8f9fa; /* Blanco roto para fondos */
  --white-color: #ffffff;
  --success-color: #48c774;
  --danger-color: #f14668;

  /* Tipografía */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;

  /* Otros */
  --border-radius: 8px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
  --transition-speed: 0.3s ease-in-out;
}

/* =================================== */
/* 2. Estilos Globales y Reinicios   */
/* =================================== */

html {
  scroll-behavior: smooth;
  background-color: var(--white-color);
}

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

.section {
  padding: 4rem 1.5rem;
}

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

/* Anulaciones de Bulma */
.button {
  font-family: var(--font-headings);
  font-weight: 700;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  border-width: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button:hover, .button:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.button.is-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.box, .card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all var(--transition-speed);
}

/* =================================== */
/* 3. Tipografía                     */
/* =================================== */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--dark-color);
}

.title.is-1, .title.is-2 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.section-title {
  margin-bottom: 3rem !important;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* =================================== */
/* 4. Clases de Utilidad y Animación */
/* =================================== */

.has-text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================== */
/* 5. Estilos del Header / Navegación */
/* =================================== */

.navbar.is-fixed-top {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: rgba(1, 42, 74, 0.95) !important; /* var(--dark-color) con transparencia */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-item, .navbar-link {
  font-family: var(--font-headings);
  transition: all var(--transition-speed);
}

.navbar-item:hover, .navbar-item.is-active {
  color: var(--accent-color) !important;
  background-color: transparent !important;
}

.logo-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white-color) !important;
}

.navbar-burger span {
  background-color: var(--white-color);
  height: 2px;
}

/* =================================== */
/* 6. Estilos de Secciones Específicas */
/* =================================== */

/* --- Hero --- */
.hero.is-fullheight {
  position: relative;
  overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(1, 42, 74, 0.7), rgba(0, 0, 0, 0.5));
}

.hero .title, .hero .subtitle {
    color: var(--white-color);
}

/* --- Statistics --- */
.stats-level .level-item .title {
    font-size: 3rem;
    color: var(--primary-color);
}
.stats-level .level-item .heading {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.animated-icon {
    transition: transform 0.4s ease;
}
.stats-level .level-item:hover .animated-icon {
    transform: scale(1.2) rotate(10deg);
}

/* --- About Us --- */
.curved-image-container img {
  border-radius: 50px 0 50px 0;
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Instructors (Analistas) --- */
.instructor-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.instructor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.instructor-card .card-image {
    padding: 1rem;
    align-items: center;
}
.instructor-card .card-image img {
    border-radius: var(--border-radius);
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.instructor-card .card-content {
    flex-grow: 1;
}

/* --- Clientele (Media) --- */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}
.partners-logos img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-speed);
}
.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Resources --- */
.resource-card {
    transition: all var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left: 5px solid var(--primary-color);
}
.resource-card h3 a {
    color: var(--dark-color);
    transition: color var(--transition-speed);
}
.resource-card h3 a:hover {
    color: var(--primary-color);
}

/* --- Contact Form --- */
.form-container {
    background: var(--light-color);
    padding: 2.5rem;
    border-left: 5px solid var(--secondary-color);
}
.form-container .label {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--dark-color);
}
.input, .textarea, .select select {
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    background-color: var(--white-color);
}
.input:focus, .textarea:focus, .select select:focus,
.input:active, .textarea:active, .select select:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(1, 79, 134, 0.25);
}
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* =================================== */
/* 7. Estilos del Footer             */
/* =================================== */

.footer {
  padding: 4rem 1.5rem 2rem;
  background-color: var(--dark-color);
}

.footer .title {
  color: var(--white-color);
}

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

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--accent-color);
  transition: color var(--transition-speed);
  text-decoration: none;
}

.footer a:hover {
  color: var(--white-color);
}

.footer .content p {
  color: rgba(255, 255, 255, 0.7);
}

/* =================================== */
/* 8. Estilos de Páginas Específicas   */
/* =================================== */

/* --- success.html --- */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--light-color);
}
.success-page .success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

/* --- privacy.html & terms.html --- */
.legal-page-content {
    padding-top: 100px;
    padding-bottom: 4rem;
}
.legal-page-content .content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-page-content .content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* =================================== */
/* 9. Consultas de Medios (Responsive)*/
/* =================================== */

/* Tablet */
@media screen and (max-width: 1023px) {
  .section {
    padding: 3rem 1.5rem;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .section {
        padding: 2.5rem 1rem;
    }

    .navbar-menu {
        background-color: rgba(1, 42, 74, 0.98); /* var(--dark-color) con más opacidad */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    .navbar-item {
        color: var(--white-color) !important;
        text-align: center;
        padding: 1rem;
    }

    .hero.is-fullheight {
        min-height: 80vh;
    }

    .hero .title.is-1 {
        font-size: 2.5rem;
    }
    .hero .subtitle.is-3 {
        font-size: 1.25rem;
    }

    .stats-level {
        flex-direction: column;
    }
    .stats-level .level-item {
        margin-bottom: 2rem;
    }
}