/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
   /* Palette "Studio Seigle | Refrescamiento" */
   --color-primary: #004080;
   /* Azul Capitán */
   --color-accent: #FFC200;
   /* Amarillo Alegría */
   --color-danger: #E61E1A;
   /* Rojo Energía */
   --color-secondary: #87CEEB;
   /* Celeste Saltos */
   --color-white: #FFFFFF;
   /* Blanco Puro */
   --color-text: #333333;
   --color-text-light: #555555;
   --color-bg-light: #F8FBFF;

   --font-heading: 'Poppins', sans-serif;
   --font-body: 'Inter', sans-serif;

   --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
   --shadow-sm: 0 4px 6px rgba(0, 64, 128, 0.08);
   /* Subtle blue shadow */
   --shadow-md: 0 8px 15px rgba(0, 64, 128, 0.12);
   --shadow-lg: 0 15px 30px rgba(0, 64, 128, 0.15);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: var(--font-body);
   color: var(--color-text);
   line-height: 1.6;
   background-color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-family: var(--font-heading);
   color: var(--color-primary);
   font-weight: 700;
   line-height: 1.2;
}

a {
   text-decoration: none;
   color: var(--color-primary);
   transition: var(--transition);
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

/* =========================================
   UTILITIES & LAYOUT
   ========================================= */
.container {
   width: 90%;
   max-width: 1200px;
   margin: 0 auto;
}

.text-center {
   text-align: center;
}

.mt-4 {
   margin-top: 2rem;
}

.section-padding {
   padding: 5rem 0;
}

.bg-light {
   background-color: var(--color-bg-light);
}

.section-header {
   margin-bottom: 3.5rem;
}

.section-header h2 {
   font-size: 2.5rem;
   margin-bottom: 1rem;
   position: relative;
   display: inline-block;
}

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

.section-header p {
   color: var(--color-text-light);
   font-size: 1.1rem;
   max-width: 600px;
   margin: 0 auto;
}

/* Grids */
.grid-2,
.grid-3,
.grid-4 {
   display: grid;
   gap: 2rem;
}

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

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

   .grid-4 {
      grid-template-columns: repeat(4, 1fr);
   }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
   display: inline-block;
   padding: 0.8rem 1.8rem;
   border-radius: 50px;
   font-family: var(--font-heading);
   font-weight: 600;
   cursor: pointer;
   user-select: none;
   text-align: center;
}

.btn-large {
   padding: 1rem 2.5rem;
   font-size: 1.1rem;
}

.btn-full {
   display: block;
   width: 100%;
}

.btn-primary {
   background-color: var(--color-primary);
   color: var(--color-white);
   box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
   background-color: #002d5a;
   /* darker primary */
   transform: translateY(-2px);
   box-shadow: var(--shadow-md);
}

.btn-accent {
   background-color: var(--color-accent);
   color: var(--color-primary);
   box-shadow: 0 4px 15px rgba(255, 194, 0, 0.4);
}

.btn-accent:hover {
   background-color: #e6b000;
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(255, 194, 0, 0.5);
}

.btn-outline {
   background-color: transparent;
   color: var(--color-white);
   border: 2px solid var(--color-white);
}

.btn-outline:hover {
   background-color: var(--color-white);
   color: var(--color-primary);
}

.btn-outline-primary {
   background-color: transparent;
   color: var(--color-primary);
   border: 2px solid var(--color-primary);
}

.btn-outline-primary:hover {
   background-color: var(--color-primary);
   color: var(--color-white);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   background-color: rgba(255, 255, 255, 0.98);
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
   z-index: 1000;
   padding: 1rem 0;
   transition: var(--transition);
}

.nav-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.logo {
   display: flex;
   align-items: center;
   gap: 0.8rem;
}

.logo-icon {
   font-size: 2.2rem;
}

.logo-text h1 {
   font-size: 1.5rem;
   margin-bottom: 0px;
   letter-spacing: -0.5px;
}

.slogan {
   font-size: 0.8rem;
   color: var(--color-accent);
   font-weight: 600;
   letter-spacing: 0.5px;
   text-transform: uppercase;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
   display: block;
   background: none;
   border: none;
   color: var(--color-primary);
   cursor: pointer;
   z-index: 1000;
   padding: 5px;
}

.nav-links {
   display: flex;
   flex-direction: column;
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   background-color: #fff;
   padding: 1.5rem;
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
   z-index: 999;

   opacity: 0;
   pointer-events: none;
   transform: translateY(-10px);
   transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links.active {
   opacity: 1;
   pointer-events: auto;
   transform: translateY(0);
}

.nav-links a {
   width: 100%;
   text-align: center;
   padding: 1rem 0;
   border-bottom: 1px solid #eee;
   font-weight: 500;
}

.nav-links a:last-child {
   border-bottom: none;
}

@media (min-width: 992px) {
   .mobile-menu-toggle {
      display: none;
   }

   .nav-links {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 2rem;
      position: static;
      background-color: transparent;
      padding: 0;
      box-shadow: none;
      opacity: 1;
      pointer-events: auto;
      transform: none;
      transition: none;
   }

   .nav-links a {
      width: auto;
      border-bottom: none;
      padding: 0;
   }

   .nav-links a:not(.btn) {
      font-weight: 500;
      position: relative;
   }

   .nav-links a:not(.btn)::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--color-accent);
      transition: var(--transition);
   }

   .nav-links a:not(.btn):hover::after {
      width: 100%;
   }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
   position: relative;
   height: 100vh;
   min-height: 600px;
   display: flex;
   align-items: center;
   /* We use standard background fallback, and linear gradient for depth */
   background: var(--color-primary) url('assets/hero_bg.jpeg') center/cover no-repeat;
   margin-top: 0;
   padding-top: 80px;
   /* Offset nav */
}

/* Fallback fallback if no image */
.hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(135deg, var(--color-primary) 0%, rgba(0, 64, 128, 0.7) 100%);
   z-index: 1;
}

.hero-content {
   position: relative;
   z-index: 2;
   max-width: 700px;
}

.hero h2 {
   color: var(--color-white);
   font-size: 3rem;
   margin-bottom: 1.5rem;
   line-height: 1.1;
   text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
   color: var(--color-white);
   font-size: 1.25rem;
   margin-bottom: 2.5rem;
   font-weight: 400;
   text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
   opacity: 0.9;
}

.hero-buttons {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
}

@media (min-width: 768px) {
   .hero h2 {
      font-size: 4rem;
   }
}

/* =========================================
   BENEFITS SECTION
   ========================================= */
.benefit-card {
   background: var(--color-white);
   padding: 2.5rem 2rem;
   border-radius: 20px;
   text-align: center;
   box-shadow: var(--shadow-sm);
   transition: var(--transition);
   border: 1px solid rgba(135, 206, 235, 0.2);
   /* Celeste borders */
}

.benefit-card:hover {
   transform: translateY(-10px);
   box-shadow: var(--shadow-lg);
   border-color: var(--color-secondary);
}

.benefit-icon {
   font-size: 3.5rem;
   margin-bottom: 1.5rem;
   display: inline-block;
   background: var(--color-bg-light);
   width: 90px;
   height: 90px;
   line-height: 90px;
   border-radius: 50%;
   color: var(--color-primary);
}

.benefit-card h3 {
   margin-bottom: 1rem;
   font-size: 1.4rem;
}

.benefit-card p {
   color: var(--color-text-light);
   font-size: 0.95rem;
}

/* =========================================
   CATALOG SECTION
   ========================================= */
.catalog-card {
   background: var(--color-white);
   border-radius: 20px;
   overflow: hidden;
   box-shadow: var(--shadow-md);
   transition: var(--transition);
}

.catalog-card:hover {
   transform: translateY(-10px);
   box-shadow: var(--shadow-lg);
}

.card-image {
   height: 250px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 5rem;
   /* For placeholder emojis */
   position: relative;
   overflow: hidden;
}

/* Colors for placeholder images based on palette */
.bg-blue {
   background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.bg-yellow {
   background: linear-gradient(135deg, #FFEA8C 0%, var(--color-accent) 100%);
}

.bg-cyan {
   background: linear-gradient(135deg, #E0F7FA 0%, var(--color-secondary) 100%);
}

.card-content {
   padding: 2rem;
}

.card-content h3 {
   margin-bottom: 0.5rem;
   font-size: 1.4rem;
}

.card-content p {
   color: var(--color-text-light);
   margin-bottom: 1.5rem;
   font-size: 0.95rem;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.steps-container {
   display: grid;
   gap: 2rem;
}

@media (min-width: 768px) {
   .steps-container {
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
   }
}

.step {
   text-align: center;
   position: relative;
}

@media (min-width: 768px) {
   .step:not(:last-child)::after {
      content: '→';
      position: absolute;
      top: 30px;
      right: -15px;
      font-size: 2rem;
      color: var(--color-secondary);
   }
}

.step-number {
   width: 60px;
   height: 60px;
   background-color: var(--color-accent);
   color: var(--color-primary);
   font-family: var(--font-heading);
   font-weight: 700;
   font-size: 1.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   margin: 0 auto 1.5rem auto;
   box-shadow: 0 4px 10px rgba(255, 194, 0, 0.4);
}

.step h4 {
   margin-bottom: 0.5rem;
   font-size: 1.2rem;
}

.step p {
   color: var(--color-text-light);
   font-size: 0.9rem;
}

/* =========================================
   BANNER CTA
   ========================================= */
.banner-cta {
   background: linear-gradient(135deg, var(--color-primary) 0%, #002d5a 100%);
   color: var(--color-white);
}

.banner-cta h2 {
   color: var(--color-white);
   margin-bottom: 1rem;
   font-size: 2.2rem;
}

.banner-cta p {
   font-size: 1.2rem;
   opacity: 0.9;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonial-card {
   background: var(--color-white);
   padding: 2.5rem;
   border-radius: 20px;
   box-shadow: var(--shadow-md);
   border-top: 5px solid var(--color-accent);
}

.stars {
   color: var(--color-accent);
   font-size: 1.5rem;
   margin-bottom: 1rem;
   letter-spacing: 2px;
}

.testimonial-card p {
   font-style: italic;
   margin-bottom: 1.5rem;
   color: var(--color-text-light);
}

.testimonial-card .author {
   font-style: normal;
   font-weight: 600;
   color: var(--color-primary);
   margin-bottom: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
   background-color: #001a33;
   /* Very dark primary hue */
   color: rgba(255, 255, 255, 0.8);
   padding: 4rem 0 1.5rem 0;
}

.footer-grid {
   display: grid;
   gap: 3rem;
   margin-bottom: 3rem;
}

@media (min-width: 768px) {
   .footer-grid {
      grid-template-columns: 2fr 1fr 1fr;
   }
}

.footer-brand h3 {
   color: var(--color-white);
   font-size: 1.5rem;
   margin-bottom: 1rem;
}

.footer-brand .logo {
   margin-bottom: 1rem;
}

.footer h4 {
   color: var(--color-white);
   margin-bottom: 1.5rem;
   font-size: 1.2rem;
}

.footer-links ul {
   list-style: none;
}

.footer-links li {
   margin-bottom: 0.8rem;
}

.footer-links a {
   color: rgba(255, 255, 255, 0.8);
}

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

.footer-bottom {
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding-top: 1.5rem;
   font-size: 0.85rem;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
   position: fixed;
   width: 60px;
   height: 60px;
   bottom: 30px;
   right: 30px;
   background-color: #25d366;
   color: #FFF;
   border-radius: 50px;
   text-align: center;
   font-size: 30px;
   box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
   z-index: 100;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: var(--transition);
   animation: pulse 2s infinite;
}

.whatsapp-float:hover {
   background-color: #128c7e;
   color: #fff;
   transform: scale(1.1);
}

@keyframes pulse {
   0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
   }

   70% {
      box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
   }

   100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
   }
}

/* =========================================
   ANIMATIONS (REVEAL)
   ========================================= */
.reveal {
   opacity: 0;
   transform: translateY(30px);
   transition: all 0.8s ease-out;
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

.animate-up {
   opacity: 0;
   transform: translateY(20px);
   animation: fadeUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 {
   animation-delay: 0.2s;
   transition-delay: 0.2s;
}

.delay-2 {
   animation-delay: 0.4s;
   transition-delay: 0.4s;
}

.delay-3 {
   animation-delay: 0.6s;
   transition-delay: 0.6s;
}

.delay-4 {
   animation-delay: 0.8s;
   transition-delay: 0.8s;
}

@keyframes fadeUp {
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* =========================================
   INNER PAGES & COMPONENTS
   ========================================= */
.page-header {
   background: var(--color-primary);
   padding: 150px 0 60px;
   text-align: center;
   color: var(--color-white);
}

.page-header h1 {
   color: var(--color-white);
   font-size: 2.5rem;
   margin-bottom: 1rem;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
   .page-header h1 {
      font-size: 3.5rem;
   }
}

/* Internal Layouts */
.content-section {
   padding: 4rem 0;
}

.content-section p {
   font-size: 1.1rem;
   margin-bottom: 2rem;
   max-width: 800px;
}

.content-section h2 {
   margin-top: 3rem;
   margin-bottom: 1.5rem;
   font-size: 2rem;
}

/* FAQ Accordion (AEO) */
.faq-container {
   max-width: 800px;
   margin: 0 auto;
}

.faq-item {
   background: var(--color-white);
   border-radius: 10px;
   margin-bottom: 1rem;
   box-shadow: var(--shadow-sm);
   overflow: hidden;
}

.faq-question {
   padding: 1.5rem;
   font-family: var(--font-heading);
   font-size: 1.2rem;
   font-weight: 600;
   color: var(--color-primary);
   cursor: pointer;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.faq-question::after {
   content: '+';
   font-size: 1.5rem;
   color: var(--color-accent);
   transition: var(--transition);
}

.faq-item.active .faq-question::after {
   content: '−';
   transform: rotate(180deg);
}

.faq-answer {
   max-height: 0;
   overflow: hidden;
   padding: 0 1.5rem;
   color: var(--color-text-light);
   transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
   max-height: 300px;
   /* Adjust according to content length */
   padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Contact Form */
.contact-form {
   max-width: 600px;
   margin: 0 auto;
   background: var(--color-white);
   padding: 2.5rem;
   border-radius: 20px;
   box-shadow: var(--shadow-md);
}

.form-group {
   margin-bottom: 1.5rem;
}

.form-group label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--color-primary);
}

.form-control {
   width: 100%;
   padding: 0.8rem 1rem;
   border: 1px solid #ddd;
   border-radius: 8px;
   font-family: var(--font-body);
   font-size: 1rem;
   transition: border-color 0.3s;
}

.form-control:focus {
   outline: none;
   border-color: var(--color-secondary);
   box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2);
}

textarea.form-control {
   min-height: 120px;
   resize: vertical;
}

/* Coverage List */
.coverage-list {
   list-style: none;
   margin-bottom: 2rem;
}

.coverage-list li {
   font-size: 1.2rem;
   margin-bottom: 1rem;
   padding-left: 2rem;
   position: relative;
}

.coverage-list li::before {
   position: absolute;
   left: 0;
   top: 2px;
}