:root {
    --bg-color: #05060a;
    --surface-color: rgba(20, 22, 30, 0.7);
    --primary-color: #00a2ff;
    --accent-color: #ff0066;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --header-height: 80px;
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Nav */
#main-header {
    height: var(--header-height);
    background: rgba(5, 6, 10, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other elements */
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo:hover .logo-text {
    text-shadow: 0 0 15px var(--primary-color);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 162, 255, 0.5);
}

.sub-logo {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

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

/* Article Pages Specific */
.article-page article h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 25px;
    line-height: 1.2;
    color: #fff;
}

.article-page article h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

/* Hero Section */
#hero {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 150px;
    position: relative;
    text-align: center;
}

.article-page article {
    padding-top: 150px;
    padding-bottom: 100px;
}

.article-body {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 162, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 162, 255, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Articles Section */
#articulos {
    padding: 100px 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.4s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 162, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.article-img {
    height: 200px;
    background: #151822;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.article-content {
    padding: 25px;
}

.article-tag {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.article-content h3 {
    margin-bottom: 15px;
}

.article-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Calculator Styles */
.calculator-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 50px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.input-group input, .input-group select {
    background: #1a1d26;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    appearance: none; /* Eliminar estilo nativo para mayor control */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.input-group select option {
    background-color: #1a1d26;
    color: #fff;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.2);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.result-box {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    text-align: center;
}

.result-box .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.result-box .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: var(--primary-color);
}

.result-box.highlighted {
    border: 1px solid var(--accent-color);
    background: rgba(255, 0, 102, 0.05);
}

.result-box.highlighted .value {
    color: var(--accent-color);
}

/* Footer & Other */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    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(37, 211, 102, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #FFF;
}
/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(0, 162, 255, 0.1) 0%, rgba(255, 0, 102, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 100px 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.cta-banner h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.nav-store-link {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
}

.nav-store-link:hover {
    background: var(--primary-color);
    color: #fff !important;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Lightbox for images */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 162, 255, 0.3);
    transition: transform 0.3s ease;
}

.lightbox:hover img {
    transform: scale(1.02);
}

.article-body img {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-body img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.2);
}

/* Contact Section */
#contacto {
    padding: 100px 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 162, 255, 0.1);
}

.contact-item svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

.contact-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
/* Equipment Section */
.equipment-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.equip-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.equip-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.equip-card.featured {
    background: linear-gradient(145deg, rgba(0, 162, 255, 0.1), rgba(255, 0, 102, 0.05));
    border: 1px solid rgba(0, 162, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.equip-card.featured::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
}

.equip-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.equip-list {
    list-style: none;
}

.equip-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: #ccc;
}

.equip-list li svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.provider-list {
    margin-top: 20px;
}

.provider-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.provider-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.provider-name {
    font-weight: 600;
    color: #fff;
}

.provider-tag {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

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