/* ==========================================================================
   TuClick.cl - Diseño de Estilos "Impulso Galáctico"
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
    --color-bg-dark: #001a33;
    /* Azul Marino Muy Profundo */
    --color-bg-dark-trans: rgba(0, 26, 51, 0.45);
    --color-bg-darker: #000f20;
    /* Para secciones y contrastes */
    --color-primary: #00aeef;
    /* Cian Brillante */
    --color-primary-glow: rgba(0, 174, 239, 0.35);
    --color-primary-glow-heavy: rgba(0, 174, 239, 0.7);
    --color-white: #ffffff;
    --color-text-muted: #b0c4de;
    /* Azul Acero Claro para texto descriptivo */

    --font-main: 'Outfit', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;

    --blur-glass: blur(16px);
    --border-glass: 1px solid rgba(0, 174, 239, 0.18);
    --border-glass-hover: 1px solid rgba(0, 174, 239, 0.5);
}

/* Reset y Estilos Globales */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Personalizado Tecnológico */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 174, 239, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Red Galáctica de Fondo */
.galaxy-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh;
    /* Mayor altura para permitir el paralaje */
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    will-change: transform;
}

#galaxy-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Animación de Paralaje por Scroll Nativo (CSS Scroll-Driven Animations) */
@supports ((animation-timeline: scroll()) and (animation-range: entry)) {
    @keyframes parallaxScroll {
        from {
            transform: translateY(0);
        }

        to {
            transform: translateY(-12vh);
        }
    }

    .galaxy-container {
        animation: parallaxScroll linear both;
        animation-timeline: scroll(root);
        animation-range: 0% 100%;
    }
}

/* Deshabilitar animaciones pesadas si el usuario prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .galaxy-container {
        animation: none !important;
        transform: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Envoltura del Contenido */
.page-content {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Header / Navegación
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 15, 32, 0.6);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(0, 174, 239, 0.1);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(0, 15, 32, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 174, 239, 0.25);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.mini-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--color-primary-glow));
    transition: var(--transition-smooth);
}

/* Logo oficial en el header */
.header-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    /* El logo tiene fondo blanco, lo invertimos para el header oscuro */
    filter: invert(1) brightness(10) drop-shadow(0 0 6px rgba(0, 174, 239, 0.4));
    transition: var(--transition-smooth);
}

.logo-link:hover .header-logo {
    filter: invert(1) brightness(10) drop-shadow(0 0 14px rgba(0, 174, 239, 0.9));
    transform: scale(1.04);
}

/* Logo en el footer */
.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: invert(1) brightness(10) drop-shadow(0 0 8px rgba(0, 174, 239, 0.3));
    transition: var(--transition-smooth);
}

.footer-logo-img:hover {
    filter: invert(1) brightness(10) drop-shadow(0 0 16px rgba(0, 174, 239, 0.8));
}

.logo-link:hover .mini-logo {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 0 12px var(--color-primary));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition-quick);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   Sección Hero
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Wrapper y estilos del logo real del Hero */
.hero-logo-wrapper {
    margin-bottom: 0.5rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-logo {
    width: 420px;
    max-width: 90vw;
    height: auto;
    /* El logo original tiene fondo blanco, lo filtramos para que se vea sobre el fondo oscuro */
    filter: invert(1) brightness(10) drop-shadow(0 0 24px rgba(0, 174, 239, 0.55));
    transition: var(--transition-smooth);
    animation: heroFloat 4s ease-in-out infinite, heroGlow 3s ease-in-out infinite alternate;
    cursor: default;
}

.hero-logo:hover {
    transform: scale(1.04) translateY(-8px);
    filter: invert(1) brightness(10) drop-shadow(0 0 40px rgba(0, 174, 239, 0.95));
    animation-play-state: paused;
}

.rocket-logo {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.5));
    transition: var(--transition-smooth);
    cursor: pointer;
    animation: heroFloat 4s ease-in-out infinite, heroGlow 3s ease-in-out infinite alternate;
}

.rocket-logo:hover {
    transform: scale(1.06) translateY(-8px);
    filter: drop-shadow(0 0 35px rgba(0, 174, 239, 0.9));
    animation-play-state: paused;
}

/* Animación de flotación suave del logo hero */
@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Animación de pulso de resplandor */
@keyframes heroGlow {
    from {
        filter: drop-shadow(0 0 15px rgba(0, 174, 239, 0.4));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(0, 174, 239, 0.85));
    }
}

/* Animación de Ondas de Señal (Pulso) */
@keyframes wavePulse {
    0% {
        opacity: 0.3;
        stroke-width: 2.5;
    }

    50% {
        opacity: 1;
        stroke-width: 4;
    }

    100% {
        opacity: 0.3;
        stroke-width: 2.5;
    }
}

.rocket-logo .wave {
    animation: wavePulse 2s infinite ease-in-out;
    transform-origin: center;
}

.rocket-logo .wave-1 {
    animation-delay: 0s;
}

.rocket-logo .wave-2 {
    animation-delay: 0.6s;
}

.rocket-logo .wave-3 {
    animation-delay: 1.2s;
}

/* Animación de fuego de propulsor */
@keyframes fireFlicker {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15) translate(-1px, 1px);
        opacity: 1;
    }
}

.rocket-fire {
    animation: fireFlicker 0.15s infinite alternate ease-in-out;
    transform-origin: 15px 88px;
}

.rocket-fire-inner {
    animation: fireFlicker 0.1s infinite alternate-reverse ease-in-out;
    transform-origin: 15px 88px;
}

/* Títulos y Subtítulo Destacado */
.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--color-white) 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

/* Franja Cian Destacada */
.cyan-strip {
    background-color: var(--color-primary);
    padding: 0.6rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(0, 174, 239, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.4);
    transform: skewX(-8deg);
    /* Dinamismo visual */
    margin: 0.5rem 0 1rem;
    display: inline-block;
}

.strip-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-bg-dark);
    /* Máximo contraste y legibilidad */
    letter-spacing: 3px;
    display: inline-block;
    transform: skewX(8deg);
    /* Compensa el skew del contenedor */
}

.hero-description {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Botón de Llamado a la Acción (CTA) con Resplandor */
.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    padding: 1.1rem 2.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px var(--color-primary-glow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-bg-dark);
    box-shadow: 0 0 35px var(--color-primary), 0 0 10px var(--color-primary);
    transform: scale(1.03);
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button:active {
    transform: scale(0.98);
}

/* Indicador de Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    text-decoration: none;
}

.scroll-arrow span {
    display: block;
    width: 14px;
    height: 14px;
    border-bottom: 2px solid var(--color-text-muted);
    border-right: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    margin: -6px;
    animation: arrowScroll 2s infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

@keyframes arrowScroll {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* ==========================================================================
   Sección Servicios (Diseño Modular Glassmorphism)
   ========================================================================== */
.services-section {
    padding: 8rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-white) 40%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Grid y Tarjetas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    position: relative;
    border-radius: 24px;
    background: var(--color-bg-dark-trans);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: var(--border-glass);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

/* Efecto de Resplandor Detrás de la Tarjeta al pasar el mouse */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 174, 239, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border: var(--border-glass-hover);
    box-shadow: 0 15px 35px rgba(0, 174, 239, 0.15), 0 0 15px rgba(0, 174, 239, 0.1);
}

.card-content {
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px var(--color-primary-glow));
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 0 15px var(--color-primary-glow-heavy));
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.card-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
}

.card-link .arrow {
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--color-white);
    text-shadow: 0 0 8px var(--color-primary);
}

.card-link:hover .arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   Sección Filosofía / Nosotros
   ========================================================================== */
.philosophy-section {
    padding: 8rem 2rem;
    background: rgba(0, 15, 32, 0.4);
    border-top: 1px solid rgba(0, 174, 239, 0.05);
    border-bottom: 1px solid rgba(0, 174, 239, 0.05);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tag {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.philosophy-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.philosophy-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
    background-color: rgba(0, 174, 239, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.2);
}

.feature-body {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.feature-body strong {
    color: var(--color-white);
    font-weight: 600;
}

/* Composición Visual de la Órbita */
.philosophy-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.visual-orbit {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-center {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-bg-dark);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary-glow-heavy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.orbit-rocket {
    width: 50px;
    height: 50px;
}

/* Logo PNG en el centro de la órbita */
.orbit-logo {
    width: 72px;
    height: auto;
    object-fit: contain;
    filter: invert(1) brightness(10) drop-shadow(0 0 8px rgba(0, 174, 239, 0.5));
}


.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(0, 174, 239, 0.2);
    border-radius: 50%;
    animation: rotateOrbit linear infinite;
}

.ring-1 {
    width: 160px;
    height: 160px;
    animation-duration: 15s;
}

.ring-2 {
    width: 240px;
    height: 240px;
    animation-duration: 25s;
    animation-direction: reverse;
}

.ring-3 {
    width: 320px;
    height: 320px;
    animation-duration: 35s;
}

.orbit-node {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-primary);
    cursor: pointer;
    transition: var(--transition-quick);
}

.orbit-node:hover {
    transform: scale(1.4);
    background-color: var(--color-primary);
    border-color: var(--color-white);
}

/* Colocación de los nodos en los anillos */
.ring-1 .orbit-node {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.ring-2 .orbit-node {
    bottom: 20px;
    right: 25%;
}

.ring-3 .orbit-node {
    top: 50%;
    left: -7px;
    transform: translateY(-50%);
}

/* Labels dinámicos al pasar el cursor sobre los nodos */
.orbit-node::before {
    content: attr(data-label);
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 15, 32, 0.9);
    border: 1px solid var(--color-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.orbit-node:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Sección de Contacto (Formulario Premium)
   ========================================================================== */
.contact-section {
    padding: 8rem 2rem;
}

.contact-card {
    background: var(--color-bg-dark-trans);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: var(--border-glass);
    border-radius: 32px;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
}

.contact-info {
    padding: 4rem 3.5rem;
    background: linear-gradient(135deg, rgba(0, 26, 51, 0.6) 0%, rgba(0, 15, 32, 0.8) 100%);
    border-right: 1px solid rgba(0, 174, 239, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.contact-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.detail-icon {
    font-size: 1.2rem;
    color: var(--color-primary);
    width: 32px;
    height: 32px;
    background: rgba(0, 174, 239, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.1);
}

.contact-form-wrapper {
    padding: 2.5rem 1.25rem;
    /* Ajuste simétrico para que respire en pantallas pequeñas */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-white);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 15, 32, 0.5);
    border: 1px solid rgba(0, 174, 239, 0.25);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition-quick);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(0, 174, 239, 0.3);
    background: rgba(0, 15, 32, 0.7);
}

/* Personalización del dropdown */
.form-group select option {
    background: var(--color-bg-darker);
    color: var(--color-white);
}

.submit-button {
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
    border: none;
    padding: 1.1rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--color-primary-glow);
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
}

.submit-button:hover {
    box-shadow: 0 0 25px var(--color-primary), 0 0 8px var(--color-primary);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Mensaje de éxito interactivo */
.success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.9);
    width: 80%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.success-message.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 174, 239, 0.15);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.3);
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes scaleUp {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
}

.success-message p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.6;
}

/* Ocultar formulario al enviar */
.contact-form.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

/* ==========================================================================
   Footer Tecnológico
   ========================================================================== */
.main-footer {
    background: var(--color-bg-darker);
    border-top: 1px solid rgba(0, 174, 239, 0.15);
    padding: 5rem 2rem 2.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 380px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.link-group h4 {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-white);
    text-transform: uppercase;
}

.link-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-group ul a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: var(--transition-quick);
}

.link-group ul a:hover {
    color: var(--color-primary);
    padding-left: 3px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* ==========================================================================
   Responsive / Adaptabilidad Móvil
   ========================================================================== */
@media (max-width: 968px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    .main-nav {
        display: none;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .cyan-strip {
        padding: 0.5rem 1.75rem;
    }

    .strip-text {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .philosophy-visual {
        height: 320px;
    }

    .visual-orbit {
        width: 280px;
        height: 280px;
    }

    .ring-1 {
        width: 140px;
        height: 140px;
    }

    .ring-2 {
        width: 210px;
        height: 210px;
    }

    .ring-3 {
        width: 280px;
        height: 280px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(0, 174, 239, 0.1);
        padding: 3rem 2rem;
    }

    .contact-form-wrapper {
        padding: 3rem 2rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    /* === AJUSTE PARA QUE EL FORMULARIO NO SE PEGUE AL BORDE DERECHO === */
    .contact-form-wrapper {
        padding: 2rem 1.25rem;
        /* Ajuste interno simétrico */
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
        gap: 1.25rem;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        /* Evita que el padding sume ancho al elemento */
        padding: 0.85rem 1rem;
        font-size: 16px !important;
        /* Resuelve el zoom molesto al hacer focus en iOS */
    }

    .submit-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* --- Estilos para el Menú Móvil con Animación --- */

.menu-toggle {
    display: none;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        z-index: 1000;
    }

    .main-nav {
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out, opacity 0.5s ease;
        width: 100%;
        background: rgba(0, 26, 51, 0.95);
        position: absolute;
        top: 80px;
        left: 0;
        border-bottom: 2px solid #00aeef;
    }

    .main-nav.active {
        max-height: 300px;
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
}

@media (min-width: 769px) {
    .main-nav {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
    }
}