/* =============================================
   HERMANDAD DE LA SANTA CENA DE HELLÍN
   Estilos principales
   ============================================= */

/* Variables de colores */
:root {
    --rojo-principal: #8B0000;
    --rojo-oscuro: #5C0000;
    --rojo-claro: #A52A2A;
    --dorado: #D4AF37;
    --blanco: #FFFFFF;
    --negro: #1A1A1A;
    --gris-claro: #F5F5F5;
    --gris: #666666;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--negro);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    background: linear-gradient(135deg, #6d0000 0%, #8B0000 30%, #5C0000 100%);
    color: var(--blanco);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid var(--dorado);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

.escudo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.escudo:hover {
    transform: scale(1.05);
}

.header-text {
    flex: 1;
    text-align: center;
    position: relative;
}

.header-text h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text .subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--dorado);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 10px 18px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dorado) 0%, #b8962e 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
    z-index: -1;
}

.nav a:hover {
    color: #1a1a1a;
    transform: translateY(-2px);
}

.nav a:hover::before {
    opacity: 1;
}

.nav a.active {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--dorado);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/hero-santa-cena.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(139, 0, 0, 0.2) 0%,
        rgba(26, 26, 26, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--blanco);
    padding: 20px;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* =============================================
   SECCIÓN DE NOTICIAS
   ============================================= */
.noticias {
    padding: 120px 0 80px;
    background-color: var(--gris-claro);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--rojo-principal);
    margin-bottom: 50px;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--dorado);
    margin: 20px auto 0;
}

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

.noticia-card {
    background-color: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.noticia-imagen {
    height: 180px;
    overflow: hidden;
    background-color: var(--rojo-claro);
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-imagen img {
    transform: scale(1.1);
}

.noticia-contenido {
    padding: 20px;
}

.noticia-fecha {
    font-size: 0.85rem;
    color: var(--gris);
    display: block;
    margin-bottom: 10px;
}

.noticia-contenido h3 {
    font-size: 1.1rem;
    color: var(--rojo-oscuro);
    margin-bottom: 10px;
    line-height: 1.4;
}

.noticia-contenido p {
    font-size: 0.9rem;
    color: var(--gris);
    margin-bottom: 15px;
    line-height: 1.5;
}

.leer-mas {
    display: inline-block;
    color: var(--rojo-principal);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.leer-mas:hover {
    color: var(--dorado);
}

/* =============================================
   SECCIÓN PRODUCTOS EN INICIO
   ============================================= */
.productos-inicio {
    padding: 80px 0;
    background-color: var(--gris-claro);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.producto-card {
    background-color: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.producto-imagen {
    height: 180px;
    overflow: hidden;
    background-color: var(--rojo-claro);
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.1);
}

.producto-contenido {
    padding: 20px;
}

.producto-contenido h3 {
    font-size: 1.1rem;
    color: var(--rojo-oscuro);
    margin-bottom: 10px;
    line-height: 1.4;
}

.producto-contenido p {
    font-size: 0.9rem;
    color: var(--gris);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.producto-precio {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rojo-principal);
    font-family: 'Cinzel', serif;
}

.btn-tienda {
    display: inline-block;
    color: var(--rojo-principal);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.producto-card:hover .btn-tienda {
    color: var(--dorado);
}

.ver-mas-container {
    text-align: center;
}

.btn-ver-mas {
    display: inline-block;
    padding: 14px 40px;
    background-color: transparent;
    color: var(--rojo-principal);
    border: 2px solid var(--rojo-principal);
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-ver-mas:hover {
    background-color: var(--rojo-principal);
    color: var(--blanco);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: var(--rojo-oscuro);
    color: var(--blanco);
    padding-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 220px 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    text-align: left;
}

.escudo-footer {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-top: 8px;
    color: var(--dorado);
    letter-spacing: 1px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.footer-logo h3 {
    border-top: none;
    padding-top: 0;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.redes-sociales {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.red-social {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease;
}

.red-social:hover {
    color: var(--dorado);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =============================================
   SECCIÓN DE CONTACTO
   ============================================= */
.contacto {
    padding: 80px 0;
    background-color: var(--blanco);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacto-info h3 {
    font-size: 1.8rem;
    color: var(--rojo-principal);
    margin-bottom: 20px;
}

.contacto-info > p {
    color: var(--gris);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contacto-datos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contacto-item strong {
    color: var(--rojo-oscuro);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacto-item span {
    color: var(--negro);
    font-size: 1rem;
}

.contacto-form {
    background: var(--gris-claro);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--negro);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rojo-principal);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar {
    width: 100%;
    padding: 15px 30px;
    background-color: var(--rojo-principal);
    color: var(--blanco);
    border: none;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-enviar:hover {
    background-color: var(--rojo-oscuro);
    transform: translateY(-2px);
}

.btn-enviar:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

.form-mensaje {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-mensaje.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-mensaje.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1200px) {
    .noticias-grid,
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
    }

    .header-text h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .header-text .subtitle {
        font-size: 0.85rem;
        letter-spacing: 4px;
    }

    .escudo {
        height: 70px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .nav a {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

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

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

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

    .hero-content h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacto-form {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .header {
        border-bottom-width: 2px;
    }

    .header-container {
        padding: 12px 15px;
        gap: 10px;
    }

    .escudo {
        height: 55px;
    }

    .header-text h1 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .header-text .subtitle {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }

    .nav ul {
        gap: 4px;
    }

    .nav a {
        font-size: 0.65rem;
        padding: 6px 10px;
        letter-spacing: 0.5px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .redes-sociales {
        align-items: center;
    }
}
