/* ======================================
   MAYORESDE18.COM - ESTILOS MODERNOS
   Página Puente para Redes Sociales
   ====================================== */

/* ======== VARIABLES GLOBALES ======== */
:root {
    --color-background: #000000;
    --color-primary: #b30000;
    --color-secondary: #d4af37;
    --color-text: #e0e0e0;
    --color-text-muted: #aaaaaa;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --transition-smooth: all 0.3s ease;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 40px rgba(212, 175, 55, 0.2);
}

/* ======== RESET Y BASE ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ======== EFECTO DE FONDO ANIMADO ======== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 25%, rgba(179, 0, 0, 0.15), transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.1), transparent 50%);
    animation: diffuse-lights 20s ease-in-out infinite alternate;
}

@keyframes diffuse-lights {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* ======== NAVBAR STICKY MODERNO ======== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.navbar-logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.navbar-logo:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--color-secondary);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.navbar-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--color-secondary);
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-menu a.active {
    color: var(--color-secondary);
}

/* Menú Hamburguesa */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-secondary);
    transition: var(--transition-smooth);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ======== UTILIDADES GENERALES ======== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 50px;
}

h3 {
    font-size: 1.5rem;
    color: #fff;
}

/* ======== HERO SECTION CON VIDEO ======== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    opacity: 0.35;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--color-text);
    margin: 25px 0 40px;
    font-weight: 300;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: #d40000;
    box-shadow: 0 0 25px rgba(179, 0, 0, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-background);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

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

/* ======== SECCIONES GENERALES ======== */
.section {
    padding: 100px 0;
}

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

/* ======== GRID DE CARDS ======== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-hover);
    background: rgba(30, 30, 30, 0.8);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.card:hover .card-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px var(--color-secondary));
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card .btn {
    margin-top: auto;
    padding: 12px 30px;
    font-size: 1rem;
}

/* ======== CARDS DE PAÍSES ======== */
.country-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.country-card {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition-smooth);
}

.country-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-secondary);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.25);
}

.country-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.country-card p {
    margin-bottom: 35px;
}

.country-card .btn {
    margin-top: 10px;
}

/* ======== SECCIÓN DE SEGURIDAD ======== */
.security-section {
    background: rgba(179, 0, 0, 0.05);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

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

.security-item {
    text-align: center;
}

.security-item svg {
    width: 50px;
    height: 50px;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.security-item h4 {
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.security-item p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ======== DISCLAIMER ======== */
.disclaimer {
    background: rgba(10, 10, 10, 0.8);
    padding: 50px 0;
    text-align: center;
}

.disclaimer p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ======== BLOG GRID ======== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.blog-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(179, 0, 0, 0.3), rgba(212, 175, 55, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.blog-card-category {
    color: var(--color-secondary);
    font-weight: 600;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-card .btn {
    margin-top: auto;
}

/* ======== ARTÍCULO INDIVIDUAL ======== */
.article-hero {
    padding: 150px 20px 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(179, 0, 0, 0.1), transparent);
}

.article-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-featured-image {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 40px auto;
    background: linear-gradient(135deg, rgba(179, 0, 0, 0.4), rgba(212, 175, 55, 0.4));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
}

.article-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.article-content h2 {
    color: var(--color-secondary);
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: left;
}

.article-content h3 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--color-text);
}

.article-content ul, .article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content strong {
    color: var(--color-secondary);
}

/* ======== CTA SECTION EN ARTÍCULOS ======== */
.article-cta {
    background: rgba(179, 0, 0, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    margin: 80px auto;
    max-width: 800px;
}

.article-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.article-cta p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ======== MODAL +18 ======== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.modal-box {
    background: rgba(15, 15, 15, 0.95);
    border: 2px solid var(--color-secondary);
    border-radius: 15px;
    padding: 50px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.4);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-box h2 {
    color: var(--color-secondary);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.modal-box p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-country-select {
    margin: 30px 0;
}

.modal-country-select label {
    display: block;
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-country-select input[type="radio"] {
    margin-right: 10px;
}

.modal-country-select label:hover {
    border-color: var(--color-secondary);
    background: rgba(40, 40, 40, 0.9);
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 35px;
}

.modal-buttons .btn {
    padding: 14px 35px;
}

/* ======== FOOTER ======== */
.footer {
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

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

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .country-cards {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    .article-featured-image {
        height: 250px;
        font-size: 3rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .modal-box {
        padding: 35px 25px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .article-cta {
        padding: 30px 20px;
    }
}
