/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Raleway", sans-serif;
}

/* Global Colors - Corporate Blue Palette */
:root {
  --background-color: #ffffff;
  --default-color: #444444; /* Dark grey for better readability on white */
  --heading-color: #0e2a47; /* Deep Navy Blue */
  --accent-color: #1059AD; /* Trustworthy Corporate Blue */
  --surface-color: #f8f9fa; /* Very light grey for cards */
  --contrast-color: #ffffff; /* Text on accent buttons */

  /* Navigation Colors */
  --nav-color: #0e2a47;
  --nav-hover-color: #1059AD;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #444444;
  --nav-dropdown-hover-color: #1059AD;
}

/* Color Variations */
.light-background {
  --background-color: #f4f7fa; /* Light blueish grey */
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #0e2a47; /* Navy Blue background */
  --default-color: #e0e0e0;
  --heading-color: #ffffff;
  --surface-color: #163b63; /* Slightly lighter navy for cards */
  --contrast-color: #ffffff;
}

/* Smooth Scroll */
:root {
  scroll-behavior: smooth;
}

/* Base Styles */
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Logic (preserved) */
.php-email-form .error-message { top: 0; left: 0; display: none; background: #df1529; color: #fff; text-align: left; padding: 15px; margin-bottom: 24px; font-weight: 600; }
.php-email-form .sent-message { display: none; color: #fff; background: #059652; text-align: center; padding: 15px; margin-bottom: 24px; font-weight: 600; }
.php-email-form .loading { display: none; background: var(--surface-color); text-align: center; padding: 15px; margin-bottom: 24px; }
.php-email-form .loading:before { content: ""; display: inline-block; border-radius: 50%; width: 24px; height: 24px; margin: 0 10px -6px 0; border: 3px solid var(--accent-color); border-top-color: var(--surface-color); animation: php-email-form-loading 1s linear infinite; }
@keyframes php-email-form-loading { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* Header */
.header {
  --background-color: rgba(255, 255, 255, 0.9);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05); /* Subtle shadow for corporate feel */
}

.header .logo { line-height: 1; }
.header .logo img { max-height: 36px; margin-right: 8px; }
.header .logo h1 { font-size: 30px; margin: 0; font-weight: 700; color: var(--heading-color); }

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 26px;
  margin: 0;
  border-radius: 4px; /* More square for corporate */
  transition: 0.3s;
  font-weight: 600;
}

.header .btn-getstarted:focus:hover,
.header .btn-getstarted:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), black 15%);
  box-shadow: 0 4px 12px rgba(16, 89, 173, 0.3);
}

@media (max-width: 1200px) {
  .header .logo { order: 1; }
  .header .btn-getstarted { order: 2; margin: 0 15px 0 0; padding: 6px 20px; }
  .header .navmenu { order: 3; }
}

.scrolled .header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95); /* White background on scroll */
  backdrop-filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Navigation Menu */
@media (min-width: 1200px) {
  .navmenu { padding: 0; }
  .navmenu ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
  .navmenu li { position: relative; }
  .navmenu a, .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  .navmenu a i, .navmenu a:focus i { font-size: 12px; line-height: 0; margin-left: 5px; transition: 0.3s; }
  .navmenu li:last-child a { padding-right: 0; }
  .navmenu .active, .navmenu .active:focus, .navmenu li:hover>a { color: var(--nav-hover-color); }
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
  }
  .navmenu .dropdown ul li { min-width: 200px; }
  .navmenu .dropdown ul a { padding: 10px 20px; font-size: 15px; text-transform: none; color: var(--nav-dropdown-color); }
  .navmenu .dropdown ul a i { font-size: 12px; }
  .navmenu .dropdown ul .active:hover, .navmenu .dropdown ul a:hover, .navmenu .dropdown ul li:hover>a { color: var(--nav-dropdown-hover-color); background-color: #f8f9fa; }
  .navmenu .dropdown:hover>ul { opacity: 1; top: 100%; visibility: visible; }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle { color: var(--nav-color); font-size: 28px; line-height: 0; margin-right: 10px; cursor: pointer; transition: color 0.3s; }
  .navmenu { padding: 0; z-index: 9997; }
  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  }
  .navmenu a, .navmenu a:focus { color: var(--nav-dropdown-color); padding: 10px 20px; font-family: var(--nav-font); font-size: 17px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; white-space: nowrap; transition: 0.3s; }
  .navmenu a:hover { color: var(--nav-hover-color); }
  .mobile-nav-active .navmenu { position: fixed; overflow: hidden; inset: 0; background: rgba(0, 0, 0, 0.5); transition: 0.3s; }
  .mobile-nav-active .navmenu>ul { display: block; }
}

/* Footer */
.footer { color: var(--default-color); background-color: #f1f4f8; font-size: 14px; position: relative; border-top: 1px solid #e0e6ed; }
.footer .footer-top { background-color: transparent; padding-top: 50px; }
.footer .footer-about .logo span { color: var(--heading-color); font-family: var(--heading-font); font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.footer h4 { font-size: 16px; font-weight: 600; position: relative; padding-bottom: 12px; margin-bottom: 15px; color: var(--heading-color); }
.footer h4::after { content: ""; position: absolute; display: block; width: 20px; height: 3px; background: var(--accent-color); bottom: 0; left: 0; }
.footer .footer-links ul a { color: #666; display: inline-block; line-height: 1; }
.footer .footer-links ul a:hover { color: var(--accent-color); }
.footer .social-links a { font-size: 18px; display: inline-block; background: #fff; color: var(--accent-color); border: 1px solid #ddd; line-height: 1; padding: 8px 0; margin-right: 4px; border-radius: 4px; text-align: center; width: 36px; height: 36px; transition: 0.3s; }
.footer .social-links a:hover { color: var(--contrast-color); background: var(--accent-color); border-color: var(--accent-color); }

/* Scroll Top */
.scroll-top { position: fixed; visibility: hidden; opacity: 0; right: 15px; bottom: 15px; z-index: 99999; background-color: var(--accent-color); width: 44px; height: 44px; border-radius: 50px; transition: all 0.4s; }
.scroll-top i { font-size: 24px; color: var(--contrast-color); line-height: 0; }
.scroll-top:hover { background-color: color-mix(in srgb, var(--accent-color), black 20%); color: var(--contrast-color); }
.scroll-top.active { visibility: visible; opacity: 1; bottom: 15px; }

/* Sections */
.section, section { color: var(--default-color); background-color: var(--background-color); padding: 80px 0; scroll-margin-top: 90px; overflow: clip; }
.section-title { text-align: center; padding-bottom: 60px; position: relative; }
.section-title h2 { font-size: 32px; font-weight: 700; position: relative; margin-bottom: 15px; }
.section-title h2:after, .section-title h2:before { content: ""; width: 50px; height: 3px; background: var(--accent-color); display: inline-block; vertical-align: middle; margin: 0 10px; }
.section-title p { margin-bottom: 0; font-size: 1.1em; color: #444; }

/* Hero Section - Corporate Style */
.hero {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #f4f7fa 0%, #ffffff 100%); /* Clean corporate gradient */
  padding-bottom: 60px;
  overflow: hidden; /* Prevent overflow issues */
}
.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 89, 173, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  top: -10%;
  right: -5%;
  z-index: 0;
  pointer-events: none; /* Fix verification issue */
}
.hero .hero-main-content { position: relative; z-index: 2; }
.hero .hero-title { font-size: 48px; font-weight: 900; color: var(--heading-color); line-height: 1.2; margin-bottom: 25px; letter-spacing: -0.01em; }
.hero .hero-title span { color: var(--accent-color) !important; }
.hero .hero-description { font-size: 1.25rem; color: #444; line-height: 1.6; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero .hero-actions .action-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; border-radius: 6px; /* Corporate square-ish */ font-weight: 600; font-size: 16px; transition: all 0.3s ease; text-decoration: none; }
.hero .hero-actions .action-btn.primary { background: var(--accent-color); color: var(--contrast-color); border: 2px solid var(--accent-color); box-shadow: 0 4px 15px rgba(16, 89, 173, 0.3); }
.hero .hero-actions .action-btn.primary:hover { background: color-mix(in srgb, var(--accent-color), black 10%); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 89, 173, 0.4); }
.hero .hero-actions .action-btn.secondary { background: white; color: var(--accent-color); border: 2px solid var(--accent-color); }
.hero .hero-actions .action-btn.secondary:hover { background: var(--accent-color); color: white; transform: translateY(-2px); }

/* Trust Badges in Hero */
.hero .trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e6f0fa;
  color: var(--accent-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Service Cards - Corporate */
.services .service-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 8px; /* Classic radius */
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #e0e6ed;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.services .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: var(--accent-color);
}
.services .service-card .card-number span {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(16, 89, 173, 0.20); /* Mejorado de 0.15 a 0.20 para mejor visibilidad */
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 20px;
  transition: 0.3s;
}
.services .service-card:hover .card-number span { color: rgba(16, 89, 173, 0.3); }
.services .service-card .service-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; color: var(--heading-color); }
.services .service-card .service-description { color: #555; margin-bottom: 20px; }

/* Pricing Cards - Corporate */
.pricing .pricing-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: 0.3s;
}
.pricing .pricing-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.pricing .pricing-card.popular {
  border: 2px solid var(--accent-color);
  position: relative;
  transform: scale(1.02);
  z-index: 1;
}
.pricing .pricing-card.popular .popular-tag {
  background: var(--accent-color);
  color: white;
  padding: 5px 30px;
  position: absolute;
  top: 20px;
  right: -30px;
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.pricing .plan-header { background: #f8f9fa; padding: 30px; border-bottom: 1px solid #eee; }
.pricing .plan-header h3 { color: var(--heading-color); font-weight: 700; }
.pricing .plan-pricing { padding: 30px; }
.pricing .plan-pricing .amount { color: var(--accent-color); font-weight: 800; }

/* Contact Section */
.contact .info-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  margin-bottom: 20px;
}
.contact .info-item i {
  color: var(--accent-color);
  font-size: 24px;
  float: left;
  width: 44px;
  height: 44px;
  background: #e6f0fa;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  margin-right: 20px;
}
.contact .php-email-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}
.contact .php-email-form input, .contact .php-email-form textarea {
  border-radius: 4px;
  border: 1px solid #ddd;
}
.contact .php-email-form input:focus, .contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(16, 89, 173, 0.1);
}
.contact .php-email-form button[type="submit"] {
  background: var(--accent-color);
  border: 0;
  padding: 12px 35px;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}
.contact .php-email-form button[type="submit"]:hover { background: color-mix(in srgb, var(--accent-color), black 15%); }

/* WhatsApp Float */
.whatsapp-float {
  background-color: #25D366; /* WhatsApp Green always works */
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}
.whatsapp-float:hover { background-color: #20BA56; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero .hero-title { font-size: 36px; }
  .section-title h2 { font-size: 28px; }
}

/* Safety Fix for Scroll Visibility */
body.scrolled main, body.scrolled section {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1; /* Ensure content stays above background effects */
}

/* GLOBAL SAFETY: Disable AOS animations to prevent content from staying invisible */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
/* ======================================================
   TESTIMONIALS – DEFINITIVE PRODUCTION VERSION
   ====================================================== */

.testimonials {
  position: relative;
  padding: 90px 0;
  background: radial-gradient(circle at top, #f8f9fa 0%, #ffffff 70%);
}

/* ------------------------------------------------------
   Swiper structural fixes (CRITICAL)
   ------------------------------------------------------ */
.testimonial-slider,
.testimonial-slider .swiper,
.testimonial-slider .swiper-wrapper,
.testimonial-slider .swiper-slide {
  overflow: visible;
}

.testimonial-slider .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
  padding-top: 52px;
  padding-bottom: 10px;
}

/* ------------------------------------------------------
   Testimonial Card
   ------------------------------------------------------ */
.testimonial-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  background: linear-gradient(145deg, #ffffff, #f1f3f5);
  border-radius: 24px;
  padding: 60px 34px 38px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.2);
}

/* Decorative quote */
.testimonial-card::after {
  content: "“";
  position: absolute;
  top: 16px;
  right: 28px;
  font-size: 140px;
  font-family: serif;
  line-height: 1;
  color: rgba(0, 0, 0, 0.035);
  pointer-events: none;
}

/* ------------------------------------------------------
   Floating Avatar
   ------------------------------------------------------ */
.testimonial-avatar {
  position: absolute;
  top: -34px;
  left: 34px;
  background: #ffffff;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.testimonial-avatar img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Soft halo */
.testimonial-avatar::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.18);
  z-index: -1;
}

/* ------------------------------------------------------
   Content layout
   ------------------------------------------------------ */
.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top metadata */
.testimonial-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.testimonial-service {
  background: #0d6efd;
  color: #ffffff;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.testimonial-location {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Result headline */
.testimonial-result {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 16px;
}

/* Quote */
.testimonial-quote {
  font-size: 15.5px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 30px;
}

/* ------------------------------------------------------
   Footer
   ------------------------------------------------------ */
.testimonial-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed #d1d5db;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-footer strong {
  display: block;
  font-size: 15px;
  color: #111827;
}

.testimonial-footer span {
  font-size: 13px;
  color: #6b7280;
}

.testimonial-rating {
  color: #facc15;
  font-size: 15px;
  letter-spacing: 2px;
}

/* ------------------------------------------------------
   Swiper arrows
   ------------------------------------------------------ */
.testimonials .swiper-button-next,
.testimonials .swiper-button-prev {
  color: #111827;
}

/* ------------------------------------------------------
   Responsive
   ------------------------------------------------------ */
@media (max-width: 991px) {
  .testimonial-card {
    padding: 56px 30px 34px;
  }

  .testimonial-avatar {
    left: 30px;
  }
}

@media (max-width: 767px) {
  .testimonials {
    padding: 70px 0;
  }

  .testimonial-slider .swiper-slide {
    padding-top: 46px;
  }

  .testimonial-card {
    padding: 52px 26px 30px;
  }

  .testimonial-avatar {
    top: -30px;
    left: 26px;
  }

  .testimonial-result {
    font-size: 18px;
  }
}
/* Remove Swiper arrows */
.testimonials .swiper-button-next,
.testimonials .swiper-button-prev {
  display: none !important;
}
