/**
 * GOTIS - Tecnología, Ingeniería, Servicios
 * Custom styles - overrides Moderna template
 */

/* ======================================================
   Brand Color Overrides
   Colors extracted from logo_light.png & logo_dark.png
   Primary steel blue: #4a8dae
   Dark navy: #1e3d52
   Light accent: #5b9fc4
====================================================== */
:root {
  --heading-color: #1e3d52;
  --accent-color: #4a8dae;
  --nav-hover-color: #5b9fc4;
  --nav-dropdown-hover-color: #4a8dae;
}

.light-background {
  --background-color: #f0f5f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #1e3d52;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #264d63;
  --contrast-color: #ffffff;
}

.scrolled .header {
  --background-color: #1e3d52;
}

/* ======================================================
   Logo
====================================================== */
.header {
  padding: 8px 0;
}

.header .logo img {
  height: calc(100% - 5px);
  max-height: none;
  margin-right: 10px;
  transition: 0.3s;
}

.header .logo {
  height: 56px;
  display: flex;
  align-items: center;
}

.header .logo h1 {
  display: none;
}

/* ======================================================
   Mega Menu - Desktop
====================================================== */
@media (min-width: 1200px) {
  .navmenu .megamenu-dropdown {
    position: relative;
  }

  .navmenu .megamenu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    max-width: 1100px;
    padding: 12px 30px 14px;
    background: rgba(20, 40, 55, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(74, 141, 174, 0.5);
    visibility: hidden;
    opacity: 0;
    top: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99;
    border-radius: 0 0 10px 10px;
  }

  .navmenu .megamenu-dropdown.megamenu-open > .megamenu {
    opacity: 1;
    visibility: visible;
  }

  .navmenu .megamenu .megamenu-col {
    padding: 0 15px;
  }

  .navmenu .megamenu .megamenu-col h6 {
    color: #5b9fc4;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(91, 159, 196, 0.3);
    font-family: var(--nav-font);
  }

  .navmenu .megamenu .megamenu-col h6 i {
    color: #5b9fc4;
    margin-right: 6px;
    font-size: 12px;
  }

  .navmenu .megamenu .megamenu-col ul {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .navmenu .megamenu .megamenu-col ul li {
    min-width: auto;
  }

  .navmenu .megamenu .megamenu-col ul li a {
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
  }

  .navmenu .megamenu .megamenu-col ul li a i {
    font-size: 9px;
    margin-right: 6px;
    color: #5b9fc4;
    opacity: 0.5;
    transition: 0.2s;
  }

  .navmenu .megamenu .megamenu-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
  }

  .navmenu .megamenu .megamenu-col ul li a:hover i {
    opacity: 1;
  }
}

/* ======================================================
   Mega Menu - Mobile
====================================================== */
@media (max-width: 1199px) {
  .navmenu .megamenu {
    display: none;
    padding: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    margin: 10px 20px;
    border-radius: 6px;
  }

  .navmenu .megamenu.dropdown-active {
    display: block;
  }

  .navmenu .megamenu .megamenu-col {
    margin-bottom: 15px;
  }

  .navmenu .megamenu .megamenu-col:last-child {
    margin-bottom: 0;
  }

  .navmenu .megamenu .megamenu-col h6 {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    font-family: var(--nav-font);
  }

  .navmenu .megamenu .megamenu-col h6 i {
    color: var(--accent-color);
    margin-right: 5px;
    font-size: 12px;
  }

  .navmenu .megamenu .megamenu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .navmenu .megamenu .megamenu-col ul li a {
    padding: 6px 0 6px 10px;
    font-size: 14px;
    color: var(--nav-dropdown-color);
    display: flex;
    align-items: center;
  }

  .navmenu .megamenu .megamenu-col ul li a i {
    font-size: 9px;
    margin-right: 6px;
    color: var(--accent-color);
  }

  .navmenu .megamenu .megamenu-col ul li a:hover {
    color: var(--nav-dropdown-hover-color);
  }
}

/* ======================================================
   Hero Section Override
====================================================== */
.hero {
  min-height: 100vh;
}

.hero::after {
  background: linear-gradient(
    135deg,
    rgba(30, 61, 82, 0.92) 0%,
    rgba(74, 141, 174, 0.85) 100%
  ), url("../img/hero-bg.jpg") center center no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  border-radius: 0;
  transform: none;
  left: 0;
}

.hero::before {
  display: none;
}

.hero .carousel-container {
  padding: 0 20px;
}

.hero .hero-logo {
  position: relative !important;
  inset: auto !important;
  width: 560px !important;
  max-width: 80vw;
  height: auto !important;
  object-fit: unset !important;
  margin: 0 auto 30px;
  display: block !important;
  animation: fadeInDown 1s both;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .hero .hero-logo {
    width: 180px;
    margin-bottom: 20px;
  }
}

.hero h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 700px;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  line-height: 1.7;
}

.hero .btn-get-started {
  background: var(--accent-color);
  color: #fff;
  border: 2px solid var(--accent-color);
  padding: 14px 38px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero .btn-get-started:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
  .hero p {
    font-size: 15px;
    width: 95%;
  }
}

/* ======================================================
   Section Title Enhancement
====================================================== */
.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--heading-color);
}

.section-title h2::after {
  background: var(--accent-color);
  width: 70px;
  height: 3px;
}

.section-title p {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* ======================================================
   Reseña / About Section
====================================================== */
.about-gotis .about-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.about-gotis .about-content .years-box {
  background: linear-gradient(135deg, #1e3d52, #4a8dae);
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 25px;
}

.about-gotis .about-content .years-box h2 {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.about-gotis .about-content .years-box p {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-gotis .about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-gotis .about-img img {
  transition: transform 0.5s ease;
}

.about-gotis .about-img:hover img {
  transform: scale(1.05);
}

/* ======================================================
   Propuesta de Valor
====================================================== */
.propuesta-valor .value-card {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  height: 100%;
  border: 1px solid transparent;
}

.propuesta-valor .value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-color);
}

.propuesta-valor .value-card .icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3d52, #4a8dae);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.propuesta-valor .value-card .icon-box i {
  font-size: 32px;
  color: #fff;
}

.propuesta-valor .value-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.propuesta-valor .value-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

/* ======================================================
   Misión & Visión
====================================================== */
.mision-vision .mv-card {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  border-left: 4px solid var(--accent-color);
  transition: 0.3s;
}

.mision-vision .mv-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.mision-vision .mv-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mision-vision .mv-card h3 i {
  color: var(--accent-color);
  font-size: 28px;
}

.mision-vision .mv-card p {
  line-height: 1.8;
  color: #555;
}

/* ======================================================
   Services Cards (Seguridad, Ingeniería, Servicios)
====================================================== */
.services-grid .service-card {
  background: var(--surface-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  height: 100%;
}

.services-grid .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.services-grid .service-card .card-icon {
  background: linear-gradient(135deg, #1e3d52, #4a8dae);
  padding: 35px 30px;
  text-align: center;
}

.services-grid .service-card .card-icon i {
  font-size: 42px;
  color: #fff;
}

.services-grid .service-card .card-body {
  padding: 25px;
}

.services-grid .service-card .card-body h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.services-grid .service-card .card-body p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 12px;
}

.services-grid .service-card .card-body .benefit {
  font-size: 13px;
  color: var(--accent-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.services-grid .service-card .card-body .benefit i {
  font-size: 14px;
}

/* Alternate gradient for different sections */
.services-grid.alt-gradient .service-card .card-icon {
  background: linear-gradient(135deg, #264d63, #5b9fc4);
}

.services-grid.alt-gradient-2 .service-card .card-icon {
  background: linear-gradient(135deg, #1a3444, #4a8dae);
}

/* ======================================================
   Stats / Counters
====================================================== */
.stats-section {
  padding: 50px 0;
}

.stats-section .stat-item {
  text-align: center;
  padding: 20px;
}

.stats-section .stat-item .purecounter {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 5px;
}

.stats-section .stat-item .stat-suffix {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
}

.stats-section .stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

/* ======================================================
   Contact Section
====================================================== */
.contact-section .info-box {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: 0.3s;
}

.contact-section .info-box:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.contact-section .info-box .icon-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3d52, #4a8dae);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-section .info-box .icon-circle i {
  color: #fff;
  font-size: 20px;
}

.contact-section .info-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-section .info-box p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.contact-section .php-email-form {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 35px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.contact-section .php-email-form input,
.contact-section .php-email-form textarea {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 12px 15px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.contact-section .php-email-form input:focus,
.contact-section .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(74, 141, 174, 0.15);
}

.contact-section .php-email-form button[type="submit"] {
  background: linear-gradient(135deg, #1e3d52, #4a8dae);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  cursor: pointer;
}

.contact-section .php-email-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #4a8dae, #1e3d52);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(74, 141, 174, 0.35);
}

/* ======================================================
   Footer Override
====================================================== */
.footer .footer-about .sitename {
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: 1px;
}

.footer .footer-about img {
  max-height: 80px;
  margin-bottom: 15px;
}

/* ======================================================
   Featured Services Override (colors matching brand)
====================================================== */
.featured-services {
  --cyan-color: #4a8dae;
  --orange-color: #5b9fc4;
  --teal-color: #1e3d52;
  --red-color: #3a7a9a;
}

/* ======================================================
   Utilities
====================================================== */
.text-accent {
  color: var(--accent-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.btn-gotis {
  background: linear-gradient(135deg, #1e3d52, #4a8dae);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-gotis:hover {
  background: linear-gradient(135deg, #4a8dae, #1e3d52);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(74, 141, 174, 0.3);
}

/* ======================================================
   Section Intro with Icon
====================================================== */
.section-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 40px;
}

.section-intro .intro-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3d52, #4a8dae);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.section-intro .intro-icon i {
  font-size: 24px;
  color: #fff;
}

/* ======================================================
   Scroll Animations Enhancements
====================================================== */
.service-card,
.value-card,
.mv-card,
.info-box {
  will-change: transform;
}
