:root {
    --neon-green: #84b500;
    --deg-neon-green: #38680c;
    --background-black: #0B0C0E;
    --ui-charcoal: #121418;
    --white: #FFFFFF;
    --gold-accent: #E4B84E;
    --glow: 0 0 20px rgb(78 208 36 / 60%);
    --text-glow: 0 0 8px rgb(138 255 0 / 80%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 12, 14, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

p{text-align:justify;}
.text-center{
    text-align:center;
}
.d-block{
    display: block;
}
.mt-2{
    margin-top:1em;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    filter: hue-rotate(-30deg);
}

.logo img {
    height: 45px;
    width: 99px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.8));
    transform: scale(1.05);
}

.logo .ai {
    color: var(--neon-green);
    text-shadow: var(--text-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--neon-green);
    text-shadow: var(--text-glow);
}

.nav-links a.active {
    color: var(--neon-green);
    text-shadow: var(--text-glow);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

.cta-header {
    background: linear-gradient(135deg, var(--neon-green), var(--deg-neon-green));
    color: var(--background-black);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--glow);
    transition: all 0.3s ease;
}

.cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
}

/* Hero Section con background 3D */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Canvas 3D como background */
#waves-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-text h1 .highlight, .green {
    color: var(--neon-green);
    text-shadow: var(--text-glow);
}

.hero-text p {
    /*font-size: 20px;*/
    margin-bottom: 20px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-green), var(--deg-neon-green));
    color: var(--background-black);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    box-shadow: var(--glow);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-align:center;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.9);
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.5)) hue-rotate(-30deg);
    animation: logoFloat 6s ease-in-out infinite;
}
.logo-image:hover {
    filter: drop-shadow(0 0 50px rgba(0, 255, 65, 0.8)) brightness(1.2);
    transform: scale(1.05);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.green{
    color:var(--neon-green);
    filter: drop-shadow(0 0 50px rgba(0, 255, 65, 0.8)) brightness(1.2);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--white);
}

.section-title .highlight {
    color: var(--neon-green);
    text-shadow: var(--text-glow);
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    justify-content: center;
}

.service-card {
    background: var(--ui-charcoal);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 400px;
    min-width: 300px;
}

.service-card:nth-child(even){
    background: var(--deg-neon-green);
    color: var(--ui-charcoal);
}
.service-card:nth-child(even) h3,.service-card:nth-child(even) h4,.service-card:nth-child(even) p,.service-card:nth-child(even) .testimonial{
    color:var(--white);
}


.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--neon-green);
    text-shadow: var(--text-glow);
    text-align:center;
}

.service-card h4{
    text-align: center;
}

.service-card p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.testimonial {
    background: rgba(0, 255, 65, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 3px solid var(--neon-green);
    margin: 20px 0;
    font-style: italic;
    font-size: 14px;
}

/* About Section */
.about {
    background: var(--ui-charcoal);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--neon-green);
    text-shadow: var(--text-glow);
}

.about-text p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.why-choose {
    list-style: none;
    margin: 30px 0;
}

.why-choose li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    position: relative;
    padding-left: 30px;
}

.why-choose li::before {
    content: '→';
    color: var(--neon-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--background-black);
    padding: 60px 0 160px;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

footer .logo {
    max-width: 150px;
    height: auto;
    filter: hue-rotate(-30deg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--neon-green);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section p i {
    color: var(--neon-green);
    margin-right: 8px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--neon-green);
}

.footer-section ul {
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li i {
    color: var(--neon-green);
    margin-right: 8px;
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--ui-charcoal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.social-links a:hover {
    background: var(--neon-green);
    color: var(--background-black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

.social-links a i {
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
    opacity: 0.7;
}

#privacidad{
    margin: 10em 0;
}

#privacidad ol, #privacidad ul {
    padding-left: 2rem;
}

#privacidad li, #privacidad p, #privacidad h1, #privacidad h2, #privacidad h3 {
    margin-bottom: 1rem;
}
#privacidad td{
    padding:1rem;
}

/* Contact Drawer */
.contact-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--ui-charcoal);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 40px 30px 100px;
    overflow-y: auto;
}

.contact-drawer.open {
    right: 0;
}

.drawer-content {
    position: relative;
    animation: fadeInUp 0.5s ease forwards;
}

.drawer-content h3, .drawer-content p, .drawer-content h4{
    text-align:center;
    margin-bottom:1rem;
}

.drawer-close {
    position: absolute;
    top: -34px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    color: var(--neon-green);
    transform: scale(1.2);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 14, 0.4);
    backdrop-filter: blur(6px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-green);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--background-black);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .logo-image {
        max-height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-drawer {
        width: 100%;
        max-width: 100%;
        right: -100%;
        border-radius: 0;
        top: 100%;
        transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .contact-drawer.open {
        top: 0;
        right: 0;
    }

    .drawer-close {
        top: 15px;
        right: 20px;
        font-size: 36px;
    }
}

#wabtn{
    background-color: var(--neon-green);
    position: fixed;
    bottom: 100px;
    right: 0;
    width: 60px;
    height: 50px;
    border-radius: 25px 0 0 25px;
}
#wabtn a{
    display: block;
    font-size: 2em;
    color: white;
    filter: drop-shadow(0px 4px 4px black);
    text-align: center;
    line-height: 1.5em;
}

.calendly-badge-widget {right: 70px !important;}
.calendly-badge-widget span{display: none !important;}

/* Spinner/Loader */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 65, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-green);
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Botón deshabilitado */
.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loader de pantalla completa (opcional) */
.form-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 12, 14, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.form-loader .spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 65, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-green);
    animation: spin 1s ease-in-out infinite;
}

.form-loader p {
    color: var(--neon-green);
    margin-top: 20px;
    font-size: 16px;
}


/* ============================================
   ESTILOS ADICIONALES PARA METADESCRIPCIONES
   Agregar al final de styles.css
   ============================================ */

/* Descripción principal del Hero */
.hero-description {
    font-size: 1.35rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--neon-green, #00FF41);
    font-weight: 600;
}

/* Descripciones de sección */
.section-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 1.5rem auto 2.5rem;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.section-description strong {
    color: var(--neon-green, #00FF41);
    font-weight: 600;
}

/* Descripciones dentro de cards */
.card-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.card-description strong {
    color: var(--neon-green, #00FF41);
}

/* Mejoras para legibilidad SEO */
.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p:last-child {
    margin-bottom: 0;
    opacity: 0.85;
}

/* Responsive para descripciones */
@media (max-width: 768px) {
    .hero-description {
        font-size: 1.15rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin: 1rem auto 2rem;
    }
    
    .card-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
}

/* Accesibilidad y contraste mejorado */
@media (prefers-contrast: high) {
    .section-description,
    .card-description {
        color: #ffffff;
    }
}


/* ========================================
   ESTILOS ADICIONALES PARA FORMULARIO
   ======================================== */

/* Spinner para el botón de envío */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Loader de pantalla completa para el formulario */
.form-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 12, 14, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.form-loader p {
    margin-top: 20px;
    color: var(--neon-green);
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Spinner grande para el loader de pantalla completa */
.spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 65, 0.2);
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animación de rotación */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animación de pulso */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Estilos para el badge de reCAPTCHA */
.grecaptcha-badge {
    z-index: 9998 !important;
}

/* Ajustar posición del badge cuando el drawer está abierto */
.contact-drawer.open ~ .grecaptcha-badge {
    right: 20px !important;
    bottom: 80px !important;
}

/* Botón deshabilitado durante envío */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.5) 0%, rgba(0, 204, 51, 0.5) 100%);
}

/* Mensaje de éxito animado */
.success-message {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mensaje de error animado */
.error-message {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Mejoras visuales para campos del formulario */
#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    outline: none;
}

/* Indicador de campo requerido */
#contact-form label::after {
    content: none;
}

#contact-form label[for="nombre"]::after,
#contact-form label[for="apellido"]::after,
#contact-form label[for="empresa"]::after,
#contact-form label[for="telefono"]::after,
#contact-form label[for="email"]::after {
    content: " *";
    color: var(--neon-green);
}

/* Validación visual de campos */
#contact-form input:invalid:not(:placeholder-shown),
#contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #ff4444;
}

#contact-form input:valid:not(:placeholder-shown),
#contact-form textarea:valid:not(:placeholder-shown) {
    border-color: var(--neon-green);
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .form-loader {
        padding: 20px;
    }
    
    .spinner-large {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .form-loader p {
        font-size: 14px;
        text-align: center;
    }
}

/* Tooltip informativo para reCAPTCHA */
.recaptcha-info {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

.recaptcha-info a {
    color: var(--neon-green);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.recaptcha-info a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
