/* 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";
}

/* Colores Globales */
:root { 
  --background-color: #ffffff; 
  --default-color: #444444; 
  --heading-color: #282828; 
  --accent-color: #f2c242; 
  --surface-color: #ffffff; 
  --contrast-color: #ffffff;
  --nav-font-size: 17px; 
}

/* Colores del Menú de Navegación */
:root {
  --nav-color: #ffffff;  
  --nav-hover-color: #f2c242; 
  --nav-mobile-background-color: #383838; 
  --nav-dropdown-background-color: #ffffff; 
  --nav-dropdown-color: #444444; 
  --nav-dropdown-hover-color: #f2c242; 
}

/* Preajustes de Color */
.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

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

/*--------------------------------------------------------------
# Estilos Generales
--------------------------------------------------------------*/
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%);
}

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

p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

/*--------------------------------------------------------------
# Header Global Único
--------------------------------------------------------------*/
.header {
  background-color: transparent;
  padding: 20px 0;
  transition: all 0.3s ease;
  z-index: 997;
  position: fixed;
  width: 100%;
}

.scrolled .header {
  background: #383838 !important;
  padding: 12px 0;
  box-shadow: 0px 2px 15px rgba(0,0,0,0.3);
}

.header .logo h1 {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff !important;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* El botón de WhatsApp tipo píldora */
.header .cta-btn {
  background: var(--accent-color);
  color: #000 !important;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Botón especial dentro del menú */
.navmenu .nav-cta-btn {
  background: var(--accent-color);
  color: #000 !important; /* Texto negro para contraste */
  padding: 8px 20px !important;
  border-radius: 50px;
  font-weight: 700 !important;
  margin-left: 15px;
  transition: 0.3s;
}

.navmenu .nav-cta-btn:hover {
  background: #fff !important;
  color: #000 !important;
  transform: scale(1.05);
}

.navmenu > ul > li > a.nav-cta-btn:before {
  display: none !important;
}

@media (min-width: 1200px) {
  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }
  .navmenu li { position: relative; }
  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #ffffff !important; 
    font-size: var(--nav-font-size);
    padding: 0 2px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color) !important; 
  }
}

/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 65px 15% auto 15%; 
    padding: 15px 0;
    margin: 0;
    border-radius: 15px;
    background-color: #383838;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu .nav-cta-btn {
    margin: 10px 20px;
    justify-content: center;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #ffffff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); 
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

@media (max-width: 768px) {
  .header .cta-btn {
    padding: 0 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 10px 0 0 !important;
  }

  .header .cta-btn i {
    font-size: 22px;
    line-height: 0;
    margin: 0;
  }
}

.mobile-nav-toggle {
  color: #ffffff !important;
  font-size: 32px;
  cursor: pointer;
  line-height: 0;
  transition: 0.5s;
  margin-left: 10px;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  font-size: 14px;
  text-align: center;
  padding: 10px 0;
  position: relative;
}

.footer.dark-background {
  background-color: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
}

.footer .copyright-border {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/*--------------------------------------------------------------
# Preloader & Scroll Top
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.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;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 72px;
  overflow: clip;
}

.section-title {
  text-align: center;
  padding-bottom: 60px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: 50%; 
  transform: translateX(-50%);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
}

#hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); 
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
}

#hero .container {
  position: relative;
  z-index: 3;
}

.hero-title span {
  display: inline-block;
  background-color: #383838;
  color: #ffffff;
  font-size: 52px;
  font-weight: 900;
  padding: 5px 20px;
  margin-bottom: 5px;
  letter-spacing: -1px;
}

.hero-subtitle {
  display: inline-block;
  background-color: var(--accent-color);
  color: #000000;
  font-size: 20px;
  font-weight: 700;
  padding: 8px 20px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .hero-title span {
    font-size: 30px;
    padding: 5px 15px;
  }
  .hero-subtitle {
    font-size: 16px;
    padding: 8px 15px;
  }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-card {
  background: #ffffff;
  padding: 30px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  transition: all 0.3s ease;
  height: 100%;
}

.about-card i {
  font-size: 32px;
  color: var(--accent-color);
  display: block;
  margin-bottom: 15px;
}

.about-card h4 {
  font-size: 18px;
  font-weight: 700;
}

.about-card p {
  font-size: 15px !important;
  margin: 0;
  color: #666;
}

/* Botón Hero y 404 - Estilo Simple */
.btn-custom-about {
  background-color: var(--accent-color);
  color: #000000 !important;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  border: 2px solid var(--accent-color);
  text-decoration: none !important;
}

/* Al posicionarse arriba (Hover) y al hacer clic (Active) */
.btn-custom-about:hover, 
.btn-custom-about:active, 
.btn-custom-about:focus {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  text-decoration: none !important;
}

/* Asegurar que el icono también sea negro */
.btn-custom-about i {
  color: #000000 !important;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
  padding: 60px 30px;
  border-radius: 18px;
  height: 100%;
}

.services .service-item .icon {
  color: var(--contrast-color);
  background: var(--accent-color);
  width: 50px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

/*--------------------------------------------------------------
# Call To Action
--------------------------------------------------------------*/
.call-to-action {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.call-to-action img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.call-to-action:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.call-to-action h3 {
  font-size: 28px;
  font-weight: 700;
}

/* Estilo para el botón CTA con los colores de la marca */
.call-to-action .cta-btn {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  transition: 0.3s all ease;
  margin: 10px;
  border: none;
  
  /* Color principal de la web (Amarillo) */
  background-color: #ffc107; 
  color: #ffffff !important; /* Letras blancas */
  
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Efecto al posicionar el mouse (Hover) */
.call-to-action .cta-btn:hover {
  background-color: #ffca2c; /* Un amarillo apenas más claro para notar el foco */
  color: #383838 !important; /* Letras cambian a gris oscuro */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Efecto al hacer clic (Active) */
.call-to-action .cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/

.contact-link {
  text-decoration: none !important;
  display: block;
  height: 100%;
  outline: none;
}

.contact-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid transparent;
}

.contact-card:hover {
  transform: translateY(-12px); /* Sube la card */
  box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.1); /* Sombra más fuerte */
  border-bottom: 3px solid #ffc107; /* Línea amarilla de marca */
  cursor: default; /* Muestra flecha normal si no tiene link */
}

/* --- ESTA ES LA ANIMACIÓN QUE BUSCABAS --- */
.contact-link:hover .contact-card {
  cursor: pointer;
}

.contact-card .icon-box {
  width: 70px;
  height: 70px;
  background: color-mix(in srgb, #ffc107, transparent 90%); /* Usa el amarillo de marca */
  color: #ffc107;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

/* Animación del icono al pasar el mouse por la card */
.contact-link:hover .icon-box {
  background: #ffc107;
  color: #383838; /* Gris oscuro */
  transform: scale(1.1) rotate(8deg); /* Gira y crece */
}

.contact-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #383838;
}

.contact-card p {
  font-size: 16px !important;
  color: #666;
  margin-bottom: 0;
}

/* Estilo para resaltar una card específica si tiene la clase highlight */
.contact-card.highlight {
  border: 1px solid rgba(255, 193, 7, 0.3);
}