/* ========================================
   MAIN STYLES — Component Styles
   ========================================
   Variables, reset, responsive y animaciones
   están en archivos separados (css/).
   ======================================== */

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    backdrop-filter: blur(15px);
    background-color: var(--nav-bg);
    padding: 1rem 0;
}

nav {
    overflow: visible;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.2rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--bg-primary);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.logo-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

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

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* Blog submenu */
.nav-blog-item {
    position: relative;
}

.submenu-toggle {
    display: none;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 25, 41, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    min-width: 280px;
    z-index: 1001;
    flex-direction: column;
    gap: 0.3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.nav-blog-item:hover .nav-submenu {
    display: flex;
}

.nav-submenu li a {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    padding: 0.6rem 1rem;
    display: block;
    border-radius: 8px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-submenu li a:hover {
    color: var(--primary) !important;
    background: rgba(0, 255, 136, 0.05);
}

.submenu-view-all {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.6rem !important;
    margin-top: 0.2rem;
    color: var(--primary) !important;
}

/* Base Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-primary-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-primary-outline:hover {
    background-color: var(--primary);
    color: var(--bg-primary);
}

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

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

/* Hero Section */
.hero {
    display: flex;
    align-items: flex-start;
    padding: 200px 0 112px;
    position: relative;
}

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

.hero h1 {
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -1px;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-left: 2px solid var(--primary);
}

.hero-info p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Services */
.services {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.service-card {
    background: transparent;
    padding: 1rem;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.features {
    list-style: none;
    flex-grow: 1;
}

.features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.features i {
    color: var(--primary);
    font-size: 0.8rem;
}

.card-footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.btn-cta {
    background-color: var(--whatsapp);
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-cta:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

/* Blog Editorial List */
.blog {
    padding: var(--section-padding) 0;
}

.blog-editorial {
    display: flex;
    flex-direction: column;
}

.blog-editorial-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 2.5rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.blog-editorial-item,
.blog-editorial-item *,
.blog-editorial-item *::before,
.blog-editorial-item *::after {
    text-decoration: none !important;
    color: inherit;
}

.blog-editorial-item:last-child {
    border-bottom: none;
}

.blog-editorial-item:hover {
    padding-left: 0.5rem;
}

.blog-editorial-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.06) !important;
    font-weight: 600;
    line-height: 1;
}

.blog-editorial-content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
    color: var(--text-primary) !important;
    line-height: 1.3;
}

.blog-editorial-content p {
    color: var(--text-muted) !important;
    line-height: 1.7;
    max-width: 55ch;
}

.blog-editorial-meta {
    text-align: right;
    white-space: nowrap;
}

.blog-editorial-category {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.blog-editorial-date {
    font-size: 0.8rem;
    color: var(--text-muted) !important;
}

/* Newsletter Section */
.newsletter {
    padding: 6rem 0;
}

.newsletter-card {
    background: rgba(13, 25, 41, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.newsletter-info h2 {
    margin-bottom: 1rem;
}

.newsletter-info p {
    color: var(--text-muted);
    max-width: 600px;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    outline: none;
    transition: var(--transition-smooth);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px var(--accent-glow);
}

.newsletter-message {
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.2rem;
}

/* Footer */
footer {
    padding: 3rem 0;
}

.disclaimer {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: justify;
    padding: 0 1rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer p {
    margin-bottom: 1rem;
}

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

.footer-links {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: var(--transition-smooth);
}

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

/* Cookie Banner & Overlay */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
}

.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 650px;
    max-height: min(90vh, 700px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(13, 25, 41, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    display: none;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.cookie-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.cookie-icon {
    color: var(--primary);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.cookie-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.accent-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-options {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.option-info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.option-info p {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
    opacity: 0.7;
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }
input:disabled + .slider { opacity: 0.5; cursor: not-allowed; }

.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.actions-main {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.actions-main .btn {
    flex: 1;
    justify-content: center;
}

.btn-danger-outline {
    border: 1px solid rgba(255, 75, 75, 0.4);
    color: #ff4b4b;
    background: transparent;
}

.btn-danger-outline:hover {
    background: rgba(255, 75, 75, 0.1);
    border-color: #ff4b4b;
}

/* Privacy Modal */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.privacy-modal .modal-content {
    background: #0a1424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    max-width: 850px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 3.5rem;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.6);
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    background: var(--primary);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.modal-body h2 {
    margin-bottom: 2rem;
    font-weight: 800;
}

.legal-text h3 {
    color: var(--primary);
    margin: 2.5rem 0 0.8rem;
    font-weight: 700;
}

.legal-text p, .legal-text ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.legal-text ul { padding-left: 1.5rem; margin-bottom: 2rem; }
.legal-text li { margin-bottom: 0.8rem; }

.modal-footer-info {
    margin-top: 4rem;
    padding: 1.5rem;
    background: rgba(0, 242, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.modal-footer-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-primary);
    font-style: italic;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal-footer-info i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Active nav link */
.nav a.active {
    color: var(--primary);
}
