/*
Theme Name: Veigas de Iria
Theme URI: https://veigasdeiria.com
Description: Tema personalizado para Veigas de Iria - Apartamentos turísticos en Padrón
Author: Toño
Author URI: https://vigorey.com
Version: 1.0
Text Domain: veigas-de-iria
Tags: translation-ready, custom-header, custom-menu, featured-images, rtl-support
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --color-green-dark: #1B5E20;
    --color-green: #2E7D32;
    --color-green-light: #4CAF50;
    --color-gold: #D4AF37;
    --color-gold-light: #F5E6A3;
    --color-white: #FFFFFF;
    --color-light: #F5F7F5;
    --color-gray: #6C757D;
    --color-dark: #212529;
    --color-border: #DEE2E6;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

/* ============================================
   RESET
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-size: 16px; line-height: 1.6; }
body { font-family: var(--font-sans); color: var(--color-dark); background: var(--color-white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 600; line-height: 1.3; }

/* ============================================
   CONTAINER
   ============================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.site-header.scrolled {
    background: rgba(255,255,255,1);
    box-shadow: var(--shadow-md);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-green-dark);
    flex-shrink: 0;
}

.site-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-logo-text {
    display: none;
}

.site-logo span {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-green-dark);
    line-height: 1.2;
    white-space: nowrap;
}

.site-logo span small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-gold);
}
.site-logo span { color: var(--color-gold); }

#main-nav { display: flex; gap: 30px; }
#main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-dark);
    transition: color 0.3s;
    position: relative;
}
#main-nav a:hover { color: var(--color-green); }
#main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-green);
    transition: width 0.3s;
}
#main-nav a:hover::after { width: 100%; }
#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,94,32,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 700px;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--color-green);
    color: var(--color-white);
    border-color: var(--color-green);
}
.btn-primary:hover {
    background: var(--color-green-dark);
    border-color: var(--color-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-green-dark);
}
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.hero-dot.active { background: var(--color-white); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section-light { background: var(--color-light); }
.section-dark { background: var(--color-green-dark); color: var(--color-white); }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: var(--color-green-dark);
}
.section-header p {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}
.section-dark .section-header h2 { color: var(--color-gold); }
.section-dark .section-header p { color: rgba(255,255,255,0.85); }

/* ============================================
   BOOKING WIDGET
   ============================================ */
.booking-widget {
    position: relative;
    z-index: 10;
    background: var(--color-white);
    padding: 30px;
    margin-top: -50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.booking-widget h3 {
    margin-bottom: 20px;
    color: var(--color-green-dark);
    font-size: 1.3rem;
}
.mp-hotel-search { margin-top: 15px; }

/* ============================================
   APARTMENTS
   ============================================ */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.apartment-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--color-white);
}
.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.apartment-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apartment-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-gold);
    color: var(--color-dark);
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}
.apartment-content {
    padding: 25px;
}
.apartment-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-green-dark);
}
.apartment-content p {
    color: var(--color-gray);
    margin-bottom: 15px;
}
.apartment-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.apartment-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-green-dark);
    margin-bottom: 15px;
}
.apartment-price .period { font-size: 0.9rem; font-weight: 400; color: var(--color-gray); }
.apartment-link {
    display: inline-block;
    color: var(--color-green);
    font-weight: 600;
    transition: color 0.3s;
}
.apartment-link:hover { color: var(--color-green-dark); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.testimonial-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.testimonial-stars {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.testimonial-text {
    font-style: italic;
    color: var(--color-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}
.testimonial-author {
    display: flex;
    gap: 15px;
    align-items: center;
}
.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-green);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.testimonial-name { font-weight: 600; }
.testimonial-source { font-size: 0.85rem; color: var(--color-gray); }

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-green-dark);
}
.feature-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
}
.section-dark .feature-card h3 { color: var(--color-gold); }
.section-dark .feature-card p { color: rgba(255,255,255,0.8); }

/* ============================================
   CTA
   ============================================ */
.cta-section h2 { font-size: 2.4rem; margin-bottom: 15px; }

/* ============================================
   TOURISM CONTENT
   ============================================ */
.tourism-content { padding: 100px 20px 60px; max-width: 1100px; margin: 0 auto; }
.tourism-content h1 { font-size: 2.5rem; margin-bottom: 30px; color: var(--color-green-dark); text-align: center; }
.tourism-content h2 { font-size: 1.8rem; margin: 30px 0 15px; color: var(--color-green); }
.tourism-content h3 { font-size: 1.4rem; margin: 25px 0 10px; color: var(--color-green-dark); }
.tourism-content p { margin-bottom: 15px; color: var(--color-gray); line-height: 1.7; }
.tourism-content ul { margin: 15px 0 20px 25px; }
.tourism-content li { margin-bottom: 8px; color: var(--color-gray); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-green-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-gold);
}
.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}
.footer-section a:hover { color: var(--color-gold); }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .apartments-grid,
    .testimonials-grid,
    .features-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.4rem; }
    .section-header h2 { font-size: 2rem; }
}
@media (max-width: 600px) {
    #main-nav { display: none; }
    #menu-toggle { display: block; }
    #main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
    }
    .hero-content h1 { font-size: 2rem; }
    .booking-widget { margin: -30px 10px 0; }
}