:root {
  --blue: #003366;
  --gold: #d4a017;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--white);
  color: #333;
  overflow-x: hidden;
}

/* --- HEADER (GLASSMORPHISM) --- */
header {
  position: fixed;
  top: 15px;
  left: 5%;
  right: 5%;
  width: 90%;
  padding: 10px 30px;
  border-radius: 100px;
  background-color: var(--glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

/* Estado Scrolled */
header.scrolled {
  background-color: rgba(255, 255, 255, 0.651);
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo */
header .logo {
  max-height: 50px; /* Increased size */
  transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0) invert(1); /* Blanco inicial */
}

header.scrolled .logo {
  filter: brightness(1) invert(0); /* Color original al bajar */
}

/* Navegación */
header nav a {
  margin-left: 40px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: all 0.3s;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.863);
}

header.scrolled nav a {
  color: var(--blue);
  text-shadow: none;
}

header nav a:hover {
  color: var(--gold) !important;
}

/* --- HERO & PARALLAX --- */
.parallax-wrapper {
  width: 100%;
  position: relative;
}

.parallax-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 120px; /* Esto empuja el texto hacia abajo para que no choque con el header */
  display: flex;
  align-items: center; /* Centra verticalmente el contenido restante */
  justify-content: center;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.background img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: brightness(0.3);
  will-change: transform;
}

.foreground {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 0 5%;
}

.gts-hero-container {
  text-align: left; /* Corregido de center para alinearse con tu diseño original */
}

/* 1. Quitamos el margen negativo del contenedor padre para evitar errores */
.main-title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0; /* Reset del margen general */
}

.main-title {
    transform: translateX(-100px); /* Mueve TODO el bloque a la izquierda inicialmente */
}

.main-title .highlight {
    margin-left: 60px; /* Empuja la segunda línea ("de CONFIANZA") hacia la derecha */
    display: inline-block;
}

.txt-gold {
  color: var(--gold) !important;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.highlight {
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -15px;
  width: 104.3%;
  height: 60px;
  border: 7px solid var(--gold);
  border-top: none;
  border-radius: 0 0 25px 25px;
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.6;
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-top: 20px;
  margin-left: 45px;
}

/* --- WAVE SECTION --- */
.wave-container {
  position: relative;
  width: 100%;
  height: 150px;
  margin-top: -150px;
  z-index: 20;
  line-height: 0;
}

#waveCanvas {
  width: 100%;
  height: 100%;
}

/* --- SECCIÓN NOSOTROS --- */
.about-section {
  padding: 100px 5%;
  background-color: var(--white);
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.title-blue {
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.about-text-bold {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

/* --- SERVICIOS / CARDS --- */
.content-block {
  padding: 80px 5%;
  background-color: #f9f9f9;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--gold);
}

.badge-blue, .badge-gold {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--white);
}

.badge-blue { background-color: var(--blue); }
.badge-gold { background-color: var(--gold); }

.card h2 {
  color: var(--blue);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.btn-ver {
  margin-top: 20px;
  color: var(--gold);
  font-weight: 700;
}

/* --- FOOTER --- */
footer {
  background-color: var(--blue);
  color: var(--white);
  padding: 60px 5%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid h3 {
  color: var(--gold);
  margin-bottom: 20px;
}

/* --- MOBILE & HAMBURGER --- */
.menu-check { display: none; }

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
  background-color: #ffffff !important;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: var(--white);
  border-radius: 10px;
  transition: 0.3s;
  background-color: var(--blue) !important; /* Cambia esto por #003366 o el color de tu marca */
    height: 3px !important;
    width: 22px !important;
    margin: 2px 0 !important;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

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

/* Tooltip opcional que aparece al pasar el mouse */
.tooltip-whatsapp {
    position: absolute;
    right: 70px;
    background: rgba(0, 51, 102, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.whatsapp-btn:hover .tooltip-whatsapp {
    opacity: 1;
    visibility: visible;
}

/* Animación de pulso para que no pase desapercibido */
@keyframes pulse-whatsapp {
    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); }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}
.footer-bottom {
    background: rgba(0, 20, 40, 0.95); /* Un tono más oscuro que el footer principal */
    padding: 20px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2); /* Línea dorada sutil */
}

.footer-credits-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.dev-credits {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.dev-credits a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    margin-left: 5px;
    transition: 0.3s;
}

.dev-credits a i {
    color: var(--gold); /* El icono de código en dorado */
    font-size: 12px;
    margin-right: 4px;
}

.dev-credits a span {
    color: var(--gold); /* Resalta 'Studios' en dorado */
}

.dev-credits a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}


/* --- MOBILE MENU PREMIUM --- */
@media (max-width: 768px) {
  header nav {
    display: none; /* Oculta la navegación normal en móvil */
  }
.hamburger {
  display: flex;
  right: -100%;
  width: 50px;
  height: 50px;
  background-color: #ffffff !important;
  border: none;             
  border-radius: 15px; 
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hamburger:active {
  transform: scale(0.9); /* Efecto de clic físico */
}

  /* Animación de las rayas */
  .hamburger span {
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--white);
  }

  .hamburger span:nth-child(1) { transform: translateY(-8px); }
  .hamburger span:nth-child(3) { transform: translateY(8px); }

  /* Menú Fullscreen con Glassmorphism */
.nav-menu {
    position: fixed;
    top: 0;
    right: -126%;
    width: 80%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    z-index: 1050;
}
.nav-links a {
    color: hsl(0, 0%, 100%) !important;
    text-decoration: none;
}
.nav-menu::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(0, 0, 0, 0.788);
    z-index: -1;
}

/* Estilo de los links en móvil */
  header nav a {
    margin: 15px 0;
    margin-right: 80px;
    font-size: 1.8rem;
    color: #ffffff !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  /* Animación del botón al abrir */
  #menu-toggle:checked ~ .hamburger {
    background: var(--gold);
    border-color: var(--gold);
  }

  #menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg); }
  #menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  #menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg); }

  /* Mostrar menú y animar links uno por uno */
  #menu-toggle:checked ~ .nav-menu {
    right: 0;
  }

  #menu-toggle:checked ~ .nav-menu a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Delay escalonado para los links */
  #menu-toggle:checked ~ .nav-menu a:nth-child(1) { transition-delay: 0.3s; }
  #menu-toggle:checked ~ .nav-menu a:nth-child(2) { transition-delay: 0.4s; }
  #menu-toggle:checked ~ .nav-menu a:nth-child(3) { transition-delay: 0.5s; }
  #menu-toggle:checked ~ .nav-menu a:nth-child(4) { transition-delay: 0.6s; }
}
.main-title {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: none; /* Eliminamos el translate negativo que mencioné antes */
    margin-left: 0;
}
.main-title .highlight {
    margin-left: clamp(0px, 5vw, 60px); /* Ajuste dinámico según pantalla */
    margin-top: 10px;
    display: inline-block;
}
    .footer-credits-container {
        flex-direction: column;
        text-align: center;
    }
/* ===== Sección de contacto (formulario estándar DanVelTech) ===== */
.gts-contacto {
    background: rgba(0, 20, 40, 0.95);
    padding: 70px 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}
.gts-contacto-box {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 36px 28px;
}
.gts-contacto-title {
    color: #fff;
    font-size: 28px;
    margin: 0 0 6px;
    text-align: center;
}
.gts-contacto-sub {
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin: 0 0 24px;
    font-size: 15px;
}
.gts-form input, .gts-form textarea, .gts-captcha input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
    margin-bottom: 14px;
    font-family: inherit;
}
.gts-form input::placeholder, .gts-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.gts-form input:focus, .gts-form textarea:focus, .gts-captcha input:focus {
    outline: none;
    border-color: var(--gold, #ffd700);
}
.gts-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}
.gts-form-grid input:first-child { grid-column: 1 / -1; }
@media (max-width: 650px) { .gts-form-grid { grid-template-columns: 1fr; } }
.gts-hp { position: absolute; left: -9999px; }
.gts-captcha label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 6px;
}
.gts-captcha input { max-width: 200px; }
.gts-btn {
    background: var(--gold, #ffd700);
    color: #001428;
    border: 0;
    border-radius: 8px;
    padding: 13px 34px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.gts-btn:hover { filter: brightness(1.1); }
.gts-btn:disabled { opacity: 0.6; cursor: wait; }
.gts-form-estado { margin-top: 14px; }
.gts-alerta { padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.gts-alerta-info { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); }
.gts-alerta-exito { background: rgba(40, 167, 69, 0.2); color: #7ee29b; }
.gts-alerta-error { background: rgba(220, 53, 69, 0.2); color: #f0a4ab; }

/* Accesos institucionales del footer (panel hosting / correo corporativo) */
.gts-accesos { font-size: 13px; }
.gts-accesos a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: 0.3s; }
.gts-accesos a:hover { color: var(--gold, #ffd700); }
.gts-accesos .sep { color: rgba(255, 255, 255, 0.3); margin: 0 8px; }
