/* =============================
   VARIABLES Y RESETEO
============================= */
:root {
  --primary-color: #1e3c72;
  --secondary-color: #2a5298;
  --accent-color: #ff6b35;
  --light-gray: #f8f9fa;
  --dark-gray: #333;
  --text-muted: #666;
  --white: #fff;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

/* UTILIDADES */
.container {
  max-width: 2200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a,
button {
  transition: all 0.3s ease;
}

a:focus,
button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* =============================
   HEADER / NAV - MEJORADO
============================= */
.header {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
}

/* CTA */
.cta-button {
  background: var(--accent-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: #e55a2b;
}

.cta-outline {
  background: transparent;
  border: 2px solid var(--white);
}

.cta-button.big {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

/* Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navbar al hacer scroll */
.header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  padding: 0.5rem 0;
  transition: background 0.3s, padding 0.3s;
}

/* =============================
   HERO
============================= */
.hero {
  background: url(assets/hero2.jpg) no-repeat center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content .subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Animaciones para hero */
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.8s ease-in-out;
}

.hero-content h1,
.hero-content .subtitle,
.hero-cta {
  opacity: 0;
  transform: translateY(20px);
}

/* =============================
   ABOUT
============================= */
.about {
  padding: 5rem 2rem;
  background: var(--light-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.features-list {
  list-style: none;
}

.features-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-gray);
}

.features-list i {
  color: var(--accent-color);
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  max-height: 500px;
  margin-bottom: 1rem;
}

.experience-badge p {
  display: inline-block;
  background-color: #fff;
  color:var(--primary-color);
  padding: 0.5rem 1rem;
  font-size: 2.5rem;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}



/* =============================
   SERVICES
============================= */
.services {
  padding: 3rem 0;
  text-align: center;
  background: var(--light-gray);
}

.services .container {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.service-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
   display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
}

.icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background:var(--primary-color); 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.service-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: auto;
  flex-grow: 1;
  margin-bottom: 1.5rem; 
}

.card-btn {
  width: 35px;
  height: 35px;
  margin-top: auto;
  margin: 0 auto;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color:var(--white);
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.card-btn:hover {
  background: #001a66;
}

/* =============================
   WHY CHOOSE US - MEJORADO CON ICONOS
============================= */
.why-choose-us {
  padding: 10rem 2rem;
  background: #fff;
  max-width: 2000px;
  color: #333;
  text-align: center;
}

.why-choose-us .section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
}

.why-choose-us .section-subtitle {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.feature-card {
  background: #f7f7f7;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-card i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #444;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
  margin: 0;
}

/* =============================
   TESTIMONIALS - MEJORADO CON FOTOS Y ESTRELLAS
============================= */
.testimonials {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.blur-overlay {
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.testimonials .section-title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.testimonials .section-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4rem;
}

.testimonial-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-nav {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.testimonial-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.testimonial-card.large {
  background: var(--white);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex: 1;
}

.testimonial-card.large.active {
  display: block;
}

.testimonial-avatar-large {
  margin-bottom: 1.5rem;
}

.testimonial-avatar-large img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 4px solid var(--accent-color);
  display: block;
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.testimonial-stars i {
  margin: 0 2px;
}

.testimonial-card.large blockquote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-card.large figcaption strong {
  font-size: 1.2rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.3rem;
}

.testimonial-card.large figcaption span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =============================
   FAQ
============================= */
.faq {
  padding: 5rem 0;
  background: var(--light-gray);
  border-color: var(--dark-gray);
  text-align: center;
}

.faq .container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.faq .section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.faq .section-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--light-gray);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq-item summary::marker {
  display: none;
}

.faq-item[open] {
  background: #f9f9f9;
  border-color: var(--primary-color);
}

.faq-item p {
  margin-top: 0.75rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* =============================
   CONTACT - MEJORADO CON FONDO AZUL
============================= */
.contact {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  text-align: center;
  position: relative;
}

.contact .container {
  background: var(--primary-color);
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--white);
}

.contact-item a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-color);
}

.contact-item i {
  color: var(--accent-color);
}

.location {
  padding: 0 0;
  background: var(--light-gray);
  text-align: center;
}

.location .container {
  max-width: 3000px;
  margin: 0 auto;
  padding: 0 0;
}

.location .section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.location .section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.map-container {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}


/* =============================
   FOOTER
============================= */
.footer {
  background:var(--primary-color);
  color: #fff;
  font-size: 1.2rem;
  padding: 2rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col p {
  line-height: 1.6;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #aaa;
}


/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }

  .testimonial-wrapper {
    flex-direction: column;
  }

  .testimonial-nav {
    order: 2;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}