/* ========================================
   Suero Terapias - Professional Styles
   Palette: Teal medical + warm accents
   ======================================== */

:root {
    /* Core palette */
    --color-primary: #0d7377;
    --color-primary-dark: #095456;
    --color-primary-light: #14a3a8;
    --color-accent: #d4a84b;
    --color-accent-light: #e8c574;
    
    /* Neutrals */
    --color-bg: #f8fafb;
    --color-bg-alt: #ffffff;
    --color-bg-dark: #1a2d2e;
    --color-text: #2c3e3f;
    --color-text-muted: #5a6d6e;
    --color-border: #e2e9ea;
    
    /* Spacing & layout */
    --container-max: 1200px;
    --section-padding: 5rem 0;
    --gap: 1.5rem;
    
    /* Typography */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Shadows & radius */
    --shadow-sm: 0 2px 8px rgba(13, 115, 119, 0.06);
    --shadow-md: 0 4px 20px rgba(13, 115, 119, 0.1);
    --shadow-lg: 0 12px 40px rgba(13, 115, 119, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Header & Nav ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 45, 46, 0.95);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--color-accent-light);
}

.footer-brand .logo {
    color: var(--color-primary);
}

.footer-brand .logo span {
    color: var(--color-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-accent-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== WhatsApp Float Button ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .whatsapp-float span {
        display: none;
    }
    .whatsapp-float {
        padding: 16px;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
}

/* ========== Hero Panel ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0d7377 50%, #14a3a8 100%);
    padding: 8rem 0 5rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero h1 .highlight {
    color: var(--color-accent-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    gap: 10px;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    z-index: 10;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.section-header.light h2 {
    color: white;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.85);
}

/* ========== Services Panel ========== */
.services {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--gap);
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.service-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap var(--transition);
}

.service-link:hover {
    color: var(--color-primary-dark);
}

/* ========== Benefits Panel ========== */
.benefits {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.benefits-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefits-images img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ========== About Panel ========== */
.about {
    padding: var(--section-padding);
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.about-features {
    list-style: none;
    margin: 1.5rem 0;
}

.about-features li {
    padding: 0.5rem 0;
    color: var(--color-text);
    font-weight: 500;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.about-card:hover {
    box-shadow: var(--shadow-md);
}

.about-card.accent {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.about-card.accent .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.about-card.accent .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* ========== Modal de Reserva ========== */
.reserva-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.reserva-modal.active {
    opacity: 1;
    visibility: visible;
}

.reserva-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.reserva-modal-content {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.reserva-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background var(--transition);
}

.reserva-modal-close:hover {
    background: var(--color-border);
}

.reserva-modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.reserva-modal-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.reserva-modal-servicio {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.reserva-form {
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.reserva-form .form-row {
    margin-bottom: 1.25rem;
}

.btn-reserva {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========== CTA Panel ========== */
.cta {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0d7377 100%);
}

.cta-overlay {
    position: absolute;
    inset: 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");
}

.cta-content {
    position: relative;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: white;
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== Footer ========== */
.footer {
    padding: 3rem 0 2rem;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}


.footer-brand p {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links h4,
.footer-horarios h4,
.footer-contact h4 {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.horarios-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.horarios-list li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-social-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--transition);
}

.footer-social:hover {
    opacity: 0.85;
}

.footer-social svg {
    flex-shrink: 0;
}

.footer-whatsapp {
    color: #25d366;
}

.footer-instagram {
    color: #E4405F;
}

.footer-tiktok {
    color: #000000;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links a {
        color: var(--color-text);
    }
    
    .nav-links a:hover {
        color: var(--color-primary);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        order: -1;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    :root {
        --section-padding: 3.5rem 0;
    }
}
