:root {
    --primary-red: #D32F2F;
    --dark-red: #B71C1C;
    --black: #111111;
    --dark-gray: #333333;
    --light-gray: #F4F4F4;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--black);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

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

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

.btn-login {
    background-color: var(--primary-red);
    padding: 8px 15px;
    border-radius: 5px;
}

.btn-login:hover {
    background-color: var(--dark-red);
    color: var(--white) !important;
}

/* Botón de Menú Hamburguesa Estándar (Oculto en PC) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

/* Las 3 líneas del ícono estándar */
.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-4.0.3') center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 1rem;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--dark-red);
}

/* Features */
.features {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* Nosotros */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--black);
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--dark-gray);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Servicios */
.services-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--primary-red);
    margin-bottom: 10px;
}

/* Newsletter (NUEVO DISEÑO CON TEXTURAS Y VOUCHER 3D) */
.newsletter-section {
    background: radial-gradient(circle at 30% 30%, #E53935 0%, #B71C1C 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Clave para que los detalles y el voucher inclinado no rompan la pantalla */
}

/* Detalles decorativos en los laterales */
.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    border-right: 1px dashed rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 2; /* Por encima de las texturas de fondo */
}

.newsletter-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    width: 300px;
    border: none;
    border-radius: 5px;
}

.newsletter-form button {
    background-color: var(--black);
}

.newsletter-form button:hover {
    background-color: var(--dark-gray);
}

#newsMessage {
    margin-top: 15px;
    font-weight: bold;
}

/* Contenedor del Voucher */
.voucher-wrapper {
    position: absolute;
    bottom: -45px;      /* Parcialmente fuera de la sección en la base */
    right: -55px;       /* Parcialmente fuera de la sección en el lateral */
    transform: rotate(-18deg); /* Inclinación solicitada */
    z-index: 5;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45));
    pointer-events: none; /* No estorba clics */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animación sutil de respuesta en PC */
.newsletter-section:hover .voucher-wrapper {
    transform: rotate(-12deg) translate(-8px, -8px);
}

/* El Voucher Físico con CSS Puro */
.voucher-card {
    display: flex;
    background: var(--white);
    color: var(--black);
    padding: 15px 20px;
    border-radius: 12px;
    width: 290px;
    height: 120px;
    position: relative;
    box-sizing: border-box;
}

/* Muescas de ticket troquelado */
.voucher-card::before, .voucher-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #9d1616; /* Tono medio de fondo */
    border-radius: 50%;
    left: 65%;
    margin-left: -8px;
}
.voucher-card::before { top: -8px; }
.voucher-card::after { bottom: -8px; }

.voucher-left {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-right: 2px dashed #e0e0e0;
    padding-right: 15px;
}

.voucher-logo {
    max-height: 25px;
    width: auto;
    object-fit: contain;
}

.voucher-title {
    font-size: 0.65rem;
    color: #888;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
}

.voucher-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-red);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
}

.voucher-right {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
}

.voucher-code {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    transform: rotate(-90deg);
    white-space: nowrap;
    color: var(--dark-gray);
    font-family: 'Montserrat', sans-serif;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--primary-red);
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col i {
    margin-right: 10px;
    color: var(--primary-red);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--dark-gray);
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
}

.mt-2 { margin-top: 20px; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: 0.3s;
}

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

.admin-link {
    display: block;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Responsive Móvil Extremo */
@media(max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .navbar {
        position: relative;
    }
    .nav-container {
        width: 100%;
        justify-content: space-between;
    }
    .nav-links { 
        display: none;
        flex-direction: column !important;
        align-items: center;
        width: 100% !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--black);
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        z-index: 9999;
    }
    .nav-links.show {
        display: flex !important;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links li a {
        display: block;
        padding: 8px 0;
        width: 100%;
    }
    .btn-login {
        display: inline-block;
        width: auto !important;
        padding: 8px 25px !important;
    }
    .features-grid, .about-grid, .services-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 { font-size: 2rem; }
    .newsletter-form { flex-direction: column; align-items: center; }
    
    /* Adaptaciones del voucher en móviles */
    .newsletter-section {
        padding: 60px 0 100px; /* Más espacio abajo para evitar colisiones */
    }
    .voucher-wrapper {
        transform: scale(0.7) rotate(-15deg);
        bottom: -30px;
        right: -45px;
    }
}

@media(max-width: 480px) {
    /* En pantallas ultra chicas se atenúa para dar legibilidad total al form */
    .voucher-wrapper {
        opacity: 0.4;
        transform: scale(0.6) rotate(-12deg);
        bottom: -25px;
        right: -35px;
    }
}




.newsletter-content h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Dorado metálico de gala ultra compatible */
    background: #d4af37; /* Color dorado sólido de respaldo */
    background: linear-gradient(135deg, #fef1c9 0%, #d4af37 40%, #aa771c 60%, #fef1c9 100%);
    -webkit-background-clip: text;
    background-clip: text; /* Propiedad estándar */
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    display: inline-block;
    filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.6));
}