/* ========================================
   Farmacia Plaza Mayor - Styles
   Colors: Burgundy (#781F3F) + Blush (#FCE4EC)
======================================== */

:root {
    --burgundy: #781F3F;
    --burgundy-dark: #5A1730;
    --burgundy-light: #9C2B52;
    --blush: #FCE4EC;
    --blush-dark: #F8BBD9;
    --blush-light: #FFF0F5;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(120, 31, 63, 0.08);
    --shadow-md: 0 8px 32px rgba(120, 31, 63, 0.12);
    --shadow-lg: 0 16px 48px rgba(120, 31, 63, 0.16);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--blush);
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--burgundy);
    opacity: 0.1;
    bottom: 20%;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--blush-dark);
    opacity: 0.2;
    bottom: 10%;
    right: 10%;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--burgundy);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(120, 31, 63, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(120, 31, 63, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}

.btn-secondary:hover {
    background: var(--burgundy);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--burgundy);
}

.btn-white:hover {
    background: var(--blush);
}

.btn-full {
    width: 100%;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--blush);
    color: var(--burgundy);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

/* Section Tags */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blush);
    color: var(--burgundy);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--burgundy);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 800;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--burgundy);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--burgundy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 50%, var(--burgundy-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(252, 228, 236, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(248, 187, 217, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero-content .badge {
    background: rgba(252, 228, 236, 0.2);
    color: var(--blush);
    border: 1px solid rgba(252, 228, 236, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--blush) 0%, var(--blush-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: var(--white);
    color: var(--burgundy);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
    background: var(--blush);
}

.hero-buttons .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.hero-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--burgundy);
}

.trust-indicators {
    display: flex;
    gap: 40px;
}

.indicator {
    display: flex;
    flex-direction: column;
}

.indicator .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--blush);
}

.indicator .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-1 {
    width: 280px;
    height: 360px;
    top: 0;
    right: 0;
    z-index: 2;
}

.card-2 {
    width: 220px;
    height: 220px;
    bottom: 40px;
    left: 0;
    z-index: 3;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-lg);
}

.card-2 img {
    height: 140px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.card-content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--burgundy);
    margin-bottom: 4px;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.accent-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--blush) 0%, var(--blush-dark) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.6;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--burgundy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:nth-child(even) {
    background: var(--blush-light);
}

.service-card:nth-child(even):hover {
    background: var(--blush);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   About Section
======================================== */
.about {
    padding: 100px 0;
    background: var(--blush-light);
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.about-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--blush-dark);
    border-radius: 50%;
    top: -40px;
    left: -40px;
    z-index: -1;
    opacity: 0.5;
}

.about-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ========================================
   Schedule Section
======================================== */
.schedule {
    padding: 100px 0;
    background: var(--white);
}

.schedule-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.schedule-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 40px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: var(--blush-light);
}

.schedule-item.closed {
    background: var(--gray-100);
    opacity: 0.7;
}

.schedule-item .day {
    font-weight: 600;
    color: var(--gray-800);
}

.schedule-item .time {
    color: var(--burgundy);
    font-weight: 600;
}

.emergency-note {
    padding: 16px 20px;
    background: var(--blush);
    border-radius: var(--radius-md);
    color: var(--burgundy);
    font-size: 0.95rem;
}

/* Schedule Visual */
.schedule-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.clock-circle {
    width: 280px;
    height: 280px;
    border: 4px solid var(--burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    position: relative;
}

.clock-circle svg {
    width: 120px;
    height: 120px;
}

.floating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.85rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(252, 228, 236, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info {
    color: var(--white);
}

.contact-info .section-tag {
    background: rgba(252, 228, 236, 0.2);
    color: var(--blush);
}

.contact-info h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--white);
    margin-bottom: 16px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(252, 228, 236, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--blush);
    margin-bottom: 4px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--blush);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 4px rgba(120, 31, 63, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-success {
    display: none;
    padding: 16px 20px;
    background: var(--blush);
    color: var(--burgundy);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
}

/* ========================================
   Map Section
======================================== */
.map {
    position: relative;
    height: 300px;
}

.map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(30%);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(120, 31, 63, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
    color: var(--white);
}

.map-content h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.map-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-copy {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-copy p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ========================================
   Mobile Menu
======================================== */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .hero-container,
    .about-container,
    .schedule-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        height: 400px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .trust-indicators {
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-main img {
        height: 350px;
    }
    
    .about-badge {
        bottom: -10px;
        right: 10px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .clock-circle {
        width: 200px;
        height: 200px;
    }
    
    .clock-circle svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .card-1 {
        width: 200px;
        height: 260px;
    }
    
    .card-2 {
        width: 160px;
        height: 160px;
    }
    
    .card-2 img {
        height: 100px;
    }
    
    .visual-card {
        border-radius: var(--radius-md);
    }
    
    .section-header h2,
    .about-content h2,
    .schedule-content h2,
    .contact-info h2 {
        font-size: 1.8rem;
    }
}

/* ========================================
   Animations
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
