/* ============================================
   FARMACIA M. LLUCH Y C. LLUCH
   Warm plum + amber palette
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --plum-dark: #3D1F3D;
    --plum: #5D3A5C;
    --plum-light: #8B5E83;
    --plum-pale: #F3E8F0;
    --plum-ghost: #FBF7FA;
    --amber: #D4920B;
    --amber-light: #F0B840;
    --amber-pale: #FFF5E0;
    --cream: #FDF6F0;
    --warm-white: #FFFCF9;
    --text: #2A1A2A;
    --text-light: #6B5068;
    --text-muted: #9B8098;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --shadow-sm: 0 2px 8px rgba(93,58,92,0.06);
    --shadow-md: 0 4px 20px rgba(93,58,92,0.1);
    --shadow-lg: 0 8px 40px rgba(93,58,92,0.14);
    --shadow-xl: 0 16px 60px rgba(93,58,92,0.18);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Lora', Georgia, serif; line-height: 1.3; color: var(--plum-dark); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--plum); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber); }

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

.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: var(--plum); color: white; padding: 8px 16px;
    border-radius: var(--radius-sm); z-index: 9999; font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* --- Blobs --- */
.blob { position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.3; pointer-events: none; z-index: 0; }
.blob-1 { width: 500px; height: 500px; background: var(--plum-pale); top: -100px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--amber-pale); bottom: 10%; left: -80px; }

/* --- Header --- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(253,246,240,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(93,58,92,0.06);
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--plum-dark); }
.logo:hover { color: var(--plum-dark); }
.logo-icon { color: var(--plum); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: 'Lora', serif; font-weight: 600; font-size: 17px; }
.logo-tag { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

.nav ul { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav a {
    padding: 8px 16px; border-radius: var(--radius-sm); font-size: 15px;
    font-weight: 600; color: var(--text-light); transition: all var(--transition);
}
.nav a:hover { color: var(--plum); background: var(--plum-pale); }

.btn-nav {
    background: var(--plum) !important; color: white !important;
    box-shadow: 0 2px 12px rgba(93,58,92,0.25);
}
.btn-nav:hover { background: var(--plum-dark) !important; color: white !important; transform: translateY(-1px); }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; position: relative; border-radius: var(--radius-sm);
}
.hamburger, .hamburger::before, .hamburger::after {
    display: block; width: 22px; height: 2px; background: var(--plum);
    border-radius: 2px; transition: all var(--transition);
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
    content: ''; position: absolute; left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-lg); font-family: 'Nunito', sans-serif;
    font-weight: 700; font-size: 15px; border: none; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
}
.btn-primary {
    background: var(--plum); color: white;
    box-shadow: 0 4px 16px rgba(93,58,92,0.3);
}
.btn-primary:hover {
    background: var(--plum-dark); color: white;
    transform: translateY(-2px); box-shadow: 0 6px 24px rgba(93,58,92,0.35);
}
.btn-secondary {
    background: white; color: var(--plum);
    border: 2px solid rgba(93,58,92,0.15);
}
.btn-secondary:hover {
    border-color: var(--plum); background: var(--plum-pale); color: var(--plum);
    transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; padding: 16px 28px; font-size: 16px; }

/* --- Hero --- */
.hero {
    position: relative; padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--plum-ghost) 100%);
    overflow: hidden;
}
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; }
.hero-wave svg { width: 100%; height: 80px; display: block; }

.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; color: var(--plum); padding: 8px 18px;
    border-radius: 50px; font-size: 13px; font-weight: 700;
    box-shadow: var(--shadow-sm); margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: inline-block; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.3); } }

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600;
    line-height: 1.2; margin-bottom: 20px; color: var(--plum-dark);
}
.hero-title em { color: var(--amber); font-style: italic; }

.hero-desc {
    font-size: 17px; color: var(--text-light); line-height: 1.8;
    margin-bottom: 32px; max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; flex-direction: column; gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-light); font-weight: 600; }
.trust-item svg { color: var(--amber); flex-shrink: 0; }

/* Hero Image */
.hero-visual { position: relative; }
.hero-image-wrapper {
    position: relative; border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hero-image-wrapper img {
    width: 100%; height: 700px; object-fit: cover;
    border-radius: var(--radius-xl);
}

.hero-float {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: white; padding: 14px 20px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 700;
    color: var(--plum-dark); z-index: 2;
}
.hero-float svg { color: var(--amber); }
.hero-float-1 { bottom: 60px; left: -30px; animation: float-1 4s ease-in-out infinite; }
.hero-float-2 { top: 60px; right: -20px; animation: float-2 5s ease-in-out infinite; }
@keyframes float-1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* --- Section shared --- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block; font-size: 12px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber);
    margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.section-desc { font-size: 16px; color: var(--text-light); }

/* --- Services --- */
.services { padding: 90px 0; background: var(--cream); }
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
    background: white; border-radius: var(--radius-lg); padding: 36px 28px;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(93,58,92,0.04);
    transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--plum), var(--amber-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 60px; height: 60px; border-radius: var(--radius-md);
    background: var(--plum-pale); color: var(--plum);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; transition: all var(--transition);
}
.service-card:hover .service-icon { background: var(--plum); color: white; transform: scale(1.05); }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.75; }

/* --- About --- */
.about { padding: 90px 0; background: var(--warm-white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-visual { position: relative; }
.about-img-main {
    border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 620px; object-fit: cover; }
.about-img-secondary {
    position: absolute; bottom: -30px; right: -30px;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-xl); border: 5px solid white;
}
.about-img-secondary img { width: 300px; height: 380px; object-fit: cover; }

.about-experience {
    position: absolute; top: -20px; left: -20px;
    background: var(--plum); color: white; padding: 20px 24px;
    border-radius: var(--radius-lg); text-align: center;
    box-shadow: var(--shadow-lg); z-index: 2;
}
.about-experience .exp-number { display: block; font-family: 'Lora', serif; font-size: 36px; font-weight: 600; line-height: 1; }
.about-experience .exp-text { font-size: 12px; font-weight: 700; opacity: 0.8; margin-top: 4px; }

.about-content .section-tag { margin-bottom: 12px; }
.about-content .section-title { margin-bottom: 20px; }
.about-text { font-size: 15px; color: var(--text-light); margin-bottom: 16px; line-height: 1.85; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.value-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--plum-pale);
    border-radius: var(--radius-md); font-size: 14px; font-weight: 700; color: var(--plum-dark);
}
.value-icon { color: var(--amber); flex-shrink: 0; }

/* --- Schedule --- */
.schedule { padding: 90px 0; background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%); color: white; }
.schedule-card {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
    background: rgba(255,255,255,0.06); border-radius: var(--radius-xl);
    padding: 56px; border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}
.schedule-content .section-tag { color: var(--amber-light); }
.schedule-content .section-title { color: white; margin-bottom: 16px; }
.schedule-desc { font-size: 15px; opacity: 0.75; margin-bottom: 32px; line-height: 1.8; }

.schedule-table { display: flex; flex-direction: column; gap: 2px; }
.schedule-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05); transition: background var(--transition);
}
.schedule-row:hover { background: rgba(255,255,255,0.1); }
.schedule-row .day { font-weight: 700; font-size: 15px; }
.schedule-row .time { font-weight: 700; color: var(--amber-light); font-size: 15px; }
.schedule-closed .time { color: rgba(255,255,255,0.4); }

.schedule-visual { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.schedule-clock { color: white; opacity: 0.3; }
.schedule-alert {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; opacity: 0.6; text-align: center; max-width: 280px;
}

/* --- Contact --- */
.contact { padding: 90px 0; background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.contact-info .section-tag { margin-bottom: 12px; }
.contact-info .section-title { margin-bottom: 16px; }
.contact-desc { font-size: 15px; color: var(--text-light); margin-bottom: 32px; line-height: 1.8; }

.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; }
.contact-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    background: var(--plum-pale); color: var(--plum);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 13px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 15px; color: var(--text); margin: 0; }
.contact-item a:hover { color: var(--amber); }

.map-placeholder { margin-top: 8px; }
.map-link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 24px; background: var(--plum); color: white;
    border-radius: var(--radius-lg); font-weight: 700; font-size: 14px;
    transition: all var(--transition);
}
.map-link:hover { background: var(--plum-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.map-link svg:first-child { color: var(--amber-light); }

/* Form */
.contact-form-wrapper {
    background: white; border-radius: var(--radius-xl); padding: 40px;
    box-shadow: var(--shadow-lg); border: 1px solid rgba(93,58,92,0.04);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 800; color: var(--plum-dark); text-transform: uppercase; letter-spacing: 0.05em; }
.form-group .optional { text-transform: none; font-weight: 600; color: var(--text-muted); font-size: 12px; }
.form-group input, .form-group textarea {
    padding: 14px 18px; border: 2px solid rgba(93,58,92,0.1);
    border-radius: var(--radius-md); font-family: 'Nunito', sans-serif;
    font-size: 15px; color: var(--text); background: var(--plum-ghost);
    transition: all var(--transition); outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--plum); background: white;
    box-shadow: 0 0 0 4px rgba(93,58,92,0.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input.error, .form-group textarea.error { border-color: #e74c3c; }

.form-success {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 28px; background: #e8f5e9; border-radius: var(--radius-md);
    color: #2e7d32; text-align: center;
}
.form-success svg { color: #4caf50; }
.form-success p { font-size: 15px; font-weight: 600; margin: 0; }

/* --- Footer --- */
.footer { background: var(--plum-dark); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-inner {
    display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px;
    padding-bottom: 48px;
}
.footer .logo { color: white; margin-bottom: 16px; }
.footer .logo-icon { color: var(--amber-light); }
.footer .logo-name { color: white; }
.footer .logo-tag { color: rgba(255,255,255,0.5); }
.footer-desc { font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer strong { display: block; color: white; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 14px; display: flex; align-items: center; gap: 8px; transition: all var(--transition); }
.footer ul a:hover { color: var(--amber-light); }
.footer ul svg { flex-shrink: 0; opacity: 0.6; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; opacity: 0.5; margin: 0; }

/* --- Scroll animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner { gap: 40px; }
    .hero-image-wrapper img { height: 560px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-inner { gap: 40px; }
    .about-img-main img { height: 480px; }
    .about-img-secondary { right: -16px; bottom: -16px; }
    .about-img-secondary img { width: 220px; height: 280px; }
    .schedule-card { padding: 40px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .nav {
        position: fixed; top: 76px; left: 0; right: 0;
        background: rgba(253,246,240,0.97); backdrop-filter: blur(20px);
        padding: 24px; border-bottom: 1px solid rgba(93,58,92,0.06);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%); opacity: 0;
        transition: all var(--transition); pointer-events: none;
    }
    .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav ul { flex-direction: column; gap: 4px; width: 100%; }
    .nav a { display: block; padding: 14px 16px; font-size: 16px; }
    .btn-nav { text-align: center; margin-top: 8px; }

    .hero { padding: 100px 0 40px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .hero-image-wrapper img { height: 400px; }
    .hero-float-1 { left: 10px; bottom: 30px; }
    .hero-float-2 { right: 10px; top: 30px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }

    .services { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; }

    .about { padding: 60px 0; }
    .about-inner { grid-template-columns: 1fr; }
    .about-visual { max-width: 480px; margin: 0 auto; }
    .about-img-main img { height: 380px; }
    .about-img-secondary img { width: 180px; height: 230px; }
    .about-experience { top: -12px; left: -12px; padding: 14px 18px; }
    .about-experience .exp-number { font-size: 28px; }
    .about-values { grid-template-columns: 1fr; }

    .schedule { padding: 60px 0; }
    .schedule-card {
        grid-template-columns: 1fr; padding: 32px 24px;
        gap: 40px;
    }
    .schedule-visual { order: -1; }
    .schedule-clock { width: 140px; height: 140px; }

    .contact { padding: 60px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-wrapper { padding: 28px 24px; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
    .hero-float { padding: 10px 14px; font-size: 12px; }
    .hero-float svg { width: 18px; height: 18px; }
}
