:root {
    --bg-dark: #121212;
    --bg-dark-secondary: #1E1E1E;
    --accent-neon: #00E676; 
    --accent-glow: rgba(0, 230, 118, 0.15); 
    
    --text-white: #FFFFFF;
    --text-grey: #A0A0A0;
    
    /* Tipografía */
    --font-main: 'Inter', sans-serif;
    
    /* Layout */
    --nav-height: 80px;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden; /* Evita scroll lateral accidental */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}



/* El Botón Primario */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px; 
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-neon);
    color: var(--bg-dark); 
    border: 1px solid var(--accent-neon);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-neon);
    box-shadow: 0 0 25px var(--accent-glow);
}


.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
}


.btn-text {
    color: var(--text-grey);
    margin-left: 20px;
}
.btn-text:hover {
    color: var(--text-white);
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    
   
    background: rgba(18, 18, 18, 0.7); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-height: 65px; 
    width: auto; 
    display: block;
    transition: transform 0.3s ease;
}


@media (max-width: 768px) {
    .logo-img {
        height: 40px; 
    }
}

.logo .dot {
    color: var(--accent-neon);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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


.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-neon);
    transition: width 0.3s ease;
}

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


.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 230, 118, 0.08) 0%, rgba(18, 18, 18, 0) 60%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 4rem; 
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-highlight {
    background: linear-gradient(90deg, #ffffff 0%, var(--text-grey) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-grey);
    margin-bottom: 40px;
    font-weight: 300;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: center; 
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.text-neon {
    color: var(--accent-neon);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.section-desc {
    color: var(--text-grey);
    font-size: 1.1rem;
}


.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px;
    align-items: stretch; 
}


.tech-card {
    background-color: var(--bg-dark-secondary); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative;
    display: flex;
    flex-direction: column;
}


.tech-card:hover {
    transform: translateY(-8px); 
    border-color: var(--accent-neon);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.15); 
}


.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    
    
    filter: brightness(1.15) contrast(1.05); 
}


.tech-card:hover .card-img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(18,18,18,0.8) 100%);
}

/* Contenido */
.card-content {
    padding: 25px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-white);
}

.card-specs {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 20px;
}


.feature-list {
    margin-bottom: 25px;
    flex-grow: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #E0E0E0;
}

.icon-check {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    fill: none;
    stroke: var(--accent-neon);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.full-width {
    width: 100%;
    text-align: center;
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(8px); 
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}


.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #1E1E1E;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 118, 0.2); 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    color: var(--text-grey);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover { color: var(--accent-neon); }

.modal-header { margin-bottom: 25px; text-align: center; }
.modal-header h3 { font-size: 1.8rem; margin-bottom: 10px; }
.modal-header p { color: var(--text-grey); font-size: 0.9rem; }


.form-group { margin-bottom: 20px; text-align: left; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-grey);
    font-weight: 500;
}

input, textarea {
    width: 100%;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}



.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; 
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}


.chat-fab {
    width: 60px;
    height: 60px;
    background-color: var(--accent-neon); 
    color: var(--bg-dark); 
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
  
    animation: pulse-neon 2s infinite;
}


.chat-fab:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.6);
}


.chat-fab.active {
    background-color: #333; 
    color: var(--text-white);
    animation: none;
    transform: rotate(90deg); 
}


.chat-fab svg {
    width: 28px;
    height: 28px;
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}


.chat-fab .icon-close { opacity: 0; transform: scale(0.5); }
.chat-fab.active .icon-robot { opacity: 0; transform: scale(0.5); }
.chat-fab.active .icon-close { opacity: 1; transform: scale(1); }


.chat-window {
    width: 350px;
    height: 450px;
    background: rgba(30, 30, 30, 0.95); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 230, 118, 0.3); 
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(90deg, #1E1E1E 0%, #252525 100%);
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-neon);
    font-weight: 600;
}

.chat-body {
    flex-grow: 1;
    background-color: var(--bg-dark);
    padding: 15px;
    overflow-y: auto; 
}


@keyframes pulse-neon {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 230, 118, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}


@media (max-width: 480px) {
    .chat-window {
        width: 85vw;
        height: 60vh;
        right: 0; 
    }
}

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}


.bot-msg {
    background-color: #2A2A2A;
    color: #E0E0E0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}


.user-msg {
    background-color: var(--accent-neon); 
    color: #121212; 
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}


.chat-input-area {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(18,18,18,0.95);
    display: flex;
    gap: 10px;
}

#user-input {
    flex-grow: 1;
    background: #121212;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
}

#user-input:focus { border-color: var(--accent-neon); }

#send-btn {
    background: none;
    border: none;
    color: var(--accent-neon);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}
#send-btn:hover { transform: scale(1.1); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
    font-size: 0.8rem;
    color: #666;
    margin-left: 10px;
    font-style: italic;
}

.consumption-table-wrapper {
    overflow-x: auto; 
    margin-top: 20px;
    background: var(--bg-dark-secondary);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px; 
}

.tech-table th, .tech-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-table th {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--accent-neon);
    font-weight: 600;
}

.tech-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-total {
    font-weight: 700;
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}


.terms-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-neon);
    padding: 25px;
    margin-top: 40px;
    border-radius: 4px;
}

.terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .terms-grid { grid-template-columns: 1fr; }
}


.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid #333;
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 0.9rem;
    color: var(--text-grey);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 { color: white; font-size: 1.5rem; margin-bottom: 15px; }
.footer-col h5 { color: var(--accent-neon); margin-bottom: 20px; font-size: 1.1rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent-neon); text-decoration: underline; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}



.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; 
}


.btn-mobile-contact {
    background-color: var(--primary-color); 
    color: white; 
    
   
    font-size: 0.85rem; 
    padding: 8px 16px; 
    
    border-radius: 50px; 
    border: none; 
    text-decoration: none;
    font-weight: 700; 
    
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap; 
}


.btn-mobile-contact:hover,
.btn-mobile-contact:active {
    background-color: #218838; 
    color: white;
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 5px;
}


@media (max-width: 992px) {
    
  
    .hamburger-btn {
        display: block;
    }

  
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 75%;   
        height: 100vh; 
        background-color: rgba(20, 20, 20, 0.98); 
        backdrop-filter: blur(10px); 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

   
    .nav-links.active {
        right: 0;
    }

   
    .nav-links .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        color: white; 
    }
    
  
    .logo-img {
        max-height: 40px; 
    }
}


.carousel-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 0 40px rgba(0,230,118,0.1);
}


.carousel-slide {
    display: none;
}


.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    filter: brightness(1.15) contrast(1.05);
}


.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4} 
    to {opacity: 1}
}


.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3); 
    text-decoration: none;
}


.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}


.prev:hover, .next:hover {
    background-color: var(--accent-neon); 
    color: var(--bg-dark); 
}