/**
 * Tardes Caleñas - Estilos Principales
 * VERSIÓN: Para estructura actual (./images/)
 */

:root {
    --primary-color: #D3120D;
    --accent-color: #D9BB74;
    --dark-text: #1A1A1A;
    --light-bg: #F8F6F3;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 15px 0;
    transition: all var(--transition-speed) ease;
    z-index: 1030;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.12);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 90px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color var(--transition-speed) ease;
    position: relative;
   
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn-primary-custom {
    background: var(--primary-color);
    color: white !important;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(211, 18, 13, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: #b00f0a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 18, 13, 0.4);
    color: #FFFFFF !important;
}

.btn-secondary-custom {
    background: white;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%), 
                url('../images/hero-tardes-calenas.jpg') center/contain;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 170px;
    background-attachment: fixed;
    
}

.hero-content {
    color: white;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-content .subheadline {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

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

/*.social-proof {
    background: rgba(255, 255, 255, 0.95);
    padding-top: 30px;
    border-radius: 15px;
    margin-top: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease 0.4s backwards;
}*/

#info {
    background-color: #FFFFFF !important;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.social-proof-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.social-proof-item:last-child {
    margin-bottom: 0;
}

.social-proof-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    flex-shrink: 0;
}

.trust-line {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: white;
    opacity: 0.9;
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all var(--transition-speed) ease;
    border-top: 4px solid var(--accent-color);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ==========================================
   DELIVERY SECTION - CORREGIDO
   ========================================== */
.delivery-section {
    background: linear-gradient(135deg, var(--primary-color), #8B0E0A);
    color: white;
    padding: 50px;
    border-radius: 20px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.delivery-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.delivery-section h3,
.delivery-section p,
.delivery-section small {
    position: relative;
    z-index: 1;
}

.delivery-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.delivery-section .btn {
    position: relative;
    z-index: 2;
}

.delivery-section .btn-light {
    background: white !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all var(--transition-speed) ease;
}

.delivery-section .btn-light:hover {
    background: var(--light-bg) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--primary-color) !important;
}

/* ==========================================
   MENU SECTION
   ========================================== */
.menu-section {
    background: var(--light-bg);
}

.menu-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all var(--transition-speed) ease;
    margin-bottom: 30px;
    height: 100%;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.menu-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.menu-item-content {
    padding: 25px;
}

.menu-item h5 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.menu-item p {
    color: #666;
    margin-bottom: 15px;
}

.menu-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
    background: var(--light-bg);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    background: var(--dark-text);
    color: white;
}

.contact-block {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
}

.contact-block h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-block i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    padding-left: 20px;
    color: #000000;
}

.testimonial-stars {
    color: var(--accent-color);
}

/* ==========================================
   FORM
   ========================================== */
#form {
    padding:10px;
}


/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.whatsapp-float {
    background: #D3120D;
    color: white !important;
    border-radius: 50px;
    padding: 15px 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.whatsapp-float:hover {
    background: #B00F0A;
    color: white !important;
    transform: translateY(-2px);
}

.fixed-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.fixed-cta .btn {
    display: block;
    margin-bottom: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: #0a0a0a;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* ==========================================
   MAP CONTAINER
   ========================================== */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 120px;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%), url('../images/hero-tardes-calenas-mobile.jpg') center/cover;
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .subheadline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .navbar-brand img {
        height: 60px;
    }
    
    .delivery-section {
        padding: 30px 20px;
    }
    
    .delivery-section h3 {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 90px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ==========================================
   ACCESIBILIDAD
   ========================================== */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}