/* ==========================================================================
   1. RESET BÁSICO Y TIPOGRAFÍA
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.bg-light {
    background-color: #f8f9fa;
}

.section-padding {
    padding: 60px 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.margin-auto { margin-left: auto; margin-right: auto; }
.margin-bottom-40 { margin-bottom: 40px; }
.max-width-800 { max-width: 800px; }

/* ==========================================================================
   2. SISTEMA DE REJILLA (GRID)
   ========================================================================== */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }

/* ==========================================================================
   3. CABECERA Y NAVEGACIÓN (COMÚN)
   ========================================================================== */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: #27ae60;
}

/* ==========================================================================
   4. BANNERS Y HEROES
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #27ae60 0%, #2ec4b6 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-nutrition {
    background: linear-gradient(rgba(39, 174, 96, 0.85), rgba(46, 196, 182, 0.85)), url('https://web.archive.org/web/20260121224554im_/https://farmaciaausan.es/wp-content/uploads/2024/07/nutritionist-3-re-6.webp') center/cover;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.hero-tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* ==========================================================================
   5. BOTONES Y ENLACES
   ========================================================================== */
.btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.hero .btn, .btn-white {
    background: white;
    color: #27ae60;
}

.btn:hover { background: #219150; }
.hero .btn:hover, .btn-white:hover { background: #f1f1f1; }

.link-green {
    color: #27ae60;
    font-weight: bold;
    text-decoration: none;
}

/* ==========================================================================
   6. SECCIONES DEL INDEX (PÁGINA PRINCIPAL)
   ========================================================================== */
/* Tarjetas del Resumen de Servicios */
.services-summary {
    padding: 60px 0;
    text-align: center;
}

.services-summary h2 {
    margin-bottom: 40px;
    color: #2c3e50;
}

.card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid #27ae60;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Detalle de Servicios (Atención, Nutrición, SPD) */
.service-detail {
    padding: 60px 0;
}

.service-detail img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-detail h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.service-detail p {
    margin-bottom: 15px;
}

/* Bloques de Contacto (¿Dónde estamos?, Contacto, Horario) */
.contact-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.contact-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.box-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-box h3 {
    margin-bottom: 15px;
    color: #27ae60;
}

.contact-box a {
    color: #27ae60;
    text-decoration: none;
}

/* Mapa */
.map-section {
    padding: 40px 0;
}

.map-section iframe {
    border-radius: 12px;
}

/* Marcas Principales */
.brands-section {
    padding: 60px 0;
    text-align: center;
}

.brands-section h2 {
    margin-bottom: 40px;
    color: #2c3e50;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.brands-grid img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.brands-grid img:hover {
    filter: grayscale(0%);
}

/* Preguntas Frecuentes (FAQ) */
.faq-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.faq-item summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    color: #2c3e50;
}

.faq-item p {
    margin-top: 15px;
}

/* ==========================================================================
   7. SECCIONES DE LA PÁGINA DE NUTRICIÓN
   ========================================================================== */
.nutrition-specialties {
    padding: 40px 0;
}

.specialty-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.specialty-card:hover {
    transform: translateY(-5px);
}

.specialty-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.specialty-card h4 {
    color: #2c3e50;
    font-size: 1rem;
}

.section-subtitle {
    color: #27ae60;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.section-subtitle.light {
    color: #e8f5e9;
}

.video-container video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.styled-list {
    list-style: none;
    margin-top: 15px;
}

.styled-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.styled-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    border-left: 4px solid #27ae60;
}

.benefit-card .number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 5px;
}

.benefit-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cta-banner {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: white;
    padding: 60px 20px;
}

.cta-banner h2 {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.6rem;
    font-weight: 400;
}

/* ==========================================================================
   8. PIE DE PÁGINA Y ELEMENTOS FLOTANTES (COMÚN)
   ========================================================================== */
.footer {
    background: #2c3e50;
    color: white;
    padding-top: 60px;
}

.footer h3 {
    color: #27ae60;
    margin-bottom: 20px;
}

.footer a { color: #ecf0f1; }

.btn-whatsapp { background: #25d366; }
.btn-whatsapp:hover { background: #1eb857; }

.footer-bottom {
    background: #1a252f;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
}

/* ==========================================================================
   9. ADAPTACIÓN MÓVIL (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 { font-size: 1.8rem; }
    .cta-banner h2 { font-size: 1.3rem; }
}

/* ==========================================================================
   10. COOKIE CONSENT
   ========================================================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-content {
    max-width: 1140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-accept {
    background-color: #27ae60;
    color: white;
}

.btn-accept:hover {
    background-color: #219653;
}

.btn-reject {
    background-color: #e74c3c;
    color: white;
}

.btn-reject:hover {
    background-color: #c0392b;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    
    .cookie-content p {
        flex: 1;
        margin-right: 20px;
    }
}