@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   VARIABLES & DESIGN TOKENS (Material 3)
   ========================================== */
:root {
    /* Color Palette */
    --md-sys-color-primary: #f37321;          /* Naranja logo principal */
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #ffe3d1;
    --md-sys-color-on-primary-container: #341100;
    
    --md-sys-color-secondary: #191c1a;        /* Negro/Gris oscuro corporativo */
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #e8eae9; /* Gris claro */
    --md-sys-color-on-secondary-container: #191c1a;

    --md-sys-color-tertiary: #b00020;         /* Rojo de acento */
    --md-sys-color-on-tertiary: #ffffff;
    
    --md-sys-color-background: #fafbfa;
    --md-sys-color-on-background: #191c1a;
    
    --md-sys-color-surface: #ffffff;
    --md-sys-color-on-surface: #191c1a;
    --md-sys-color-surface-variant: #e1e4e1;
    --md-sys-color-on-surface-variant: #414944;
    --md-sys-color-outline: #717973;

    /* Elevation / Shadows */
    --md-elevation-1: 0px 1px 3px 0px rgba(0,0,0,0.1), 0px 1px 2px -1px rgba(0,0,0,0.1);
    --md-elevation-2: 0px 3px 6px -1px rgba(0,0,0,0.12), 0px 2px 4px -1px rgba(0,0,0,0.08);
    --md-elevation-3: 0px 10px 20px -5px rgba(0,0,0,0.15), 0px 8px 16px -6px rgba(0,0,0,0.1);
    --md-elevation-4: 0px 20px 25px -5px rgba(0,0,0,0.15), 0px 10px 10px -5px rgba(0,0,0,0.04);

    /* Border Radii */
    --md-shape-small: 8px;
    --md-shape-medium: 12px;
    --md-shape-large: 16px;
    --md-shape-extra-large: 28px;
    --md-shape-full: 9999px;

    /* Font Family */
    --md-font-family: 'Outfit', sans-serif;
    
    /* Layout Sizes */
    --site-max-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--md-font-family);
    color: var(--md-sys-color-on-background);
    background-color: var(--md-sys-color-background);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--md-sys-color-on-background);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 12px;
}

h2.section-title {
    text-align: center;
    margin-bottom: 8px;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--md-sys-color-primary);
    border-radius: var(--md-shape-full);
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface-variant);
}

.text-center {
    text-align: center;
}

/* ==========================================
   MATERIAL BUTTONS & ACTIONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.1px;
    border-radius: var(--md-shape-extra-large);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    box-shadow: var(--md-elevation-1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
}

.btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.btn-primary:hover {
    background-color: #e26211;
    box-shadow: var(--md-elevation-2);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--md-sys-color-secondary);
    color: var(--md-sys-color-on-secondary);
}

.btn-secondary:hover {
    background-color: #2c312d;
    box-shadow: var(--md-elevation-2);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: 2px solid var(--md-sys-color-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--md-sys-color-primary-container);
    transform: translateY(-2px);
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

.section-bg {
    background-color: #f3f5f3;
}

/* ==========================================
   HEADER & NAVBAR
   ========================================== */
header {
    background-color: var(--md-sys-color-surface);
    box-shadow: var(--md-elevation-1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-fast);
}

.contact-bar {
    background-color: var(--md-sys-color-secondary);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
    font-weight: 500;
}

.contact-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-bar-links {
    display: flex;
    gap: 20px;
}

.contact-bar-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.contact-bar-links a:hover {
    opacity: 0.8;
}

.contact-bar-links a i {
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.logo-container a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: var(--md-shape-small);
}

.site-name {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--md-sys-color-primary);
    line-height: 1.1;
}

.site-name span {
    display: block;
    font-size: 0.85rem;
    color: var(--md-sys-color-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Language Switcher Mini Floating Below Header */
.top-lang-switcher {
    position: absolute;
    top: 100%;
    right: 24px;
    display: flex;
    gap: 6px;
    z-index: 110;
    background-color: var(--md-sys-color-surface);
    padding: 4px 8px;
    border-radius: 0 0 var(--md-shape-small) var(--md-shape-small);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border: 1.5px solid var(--md-sys-color-surface-variant);
    border-top: none;
}

.lang-btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--md-shape-small);
    font-size: 0.7rem;
    font-weight: 700;
    background-color: var(--md-sys-color-surface-variant);
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn-mini img {
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 1px;
}

.lang-btn-mini.active {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-color: var(--md-sys-color-primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, #fff7f2 0%, #f4f4f4 100%);
    padding: 100px 0 160px 0; /* Aumentado de 80px a 160px para evitar solapamientos */
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.15;
    color: var(--md-sys-color-secondary);
    margin-bottom: 12px;
}

.hero-text h2 {
    font-size: 1.6rem;
    color: var(--md-sys-color-primary);
    margin-bottom: 24px;
    font-weight: 700;
    padding-bottom: 0;
}

.hero-text h2::after {
    display: none;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-left: 12px; /* Margen a la izquierda para no pegar los botones al borde */
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-circle-bg {
    position: absolute;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    background: radial-gradient(circle, var(--md-sys-color-primary-container) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    border-radius: var(--md-shape-full);
}

.hero-img {
    position: relative;
    z-index: 2;
    max-height: 440px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
    border-radius: 24px; /* Cambiado de 50% (círculo) a 24px (rectángulo redondeado) */
    border: 8px solid #ffffff;
    object-fit: cover;
    animation: floatImage 6s ease-in-out infinite; /* Añadido efecto de flotación lenta */
}

/* ==========================================
   PROBLEM SECTION
   ========================================== */
.problem-box {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-shape-large);
    box-shadow: var(--md-elevation-2);
    padding: 48px;
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.problem-header {
    margin-bottom: 32px;
    text-align: center;
}

.problem-header h2 {
    font-size: 2rem;
    color: var(--md-sys-color-secondary);
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-item {
    background-color: #fef8f5;
    border-left: 5px solid var(--md-sys-color-primary);
    padding: 24px;
    border-radius: 0 var(--md-shape-medium) var(--md-shape-medium) 0;
    transition: var(--transition-fast);
}

.problem-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-elevation-2);
}

.problem-icon {
    font-size: 2rem;
    color: var(--md-sys-color-primary);
    margin-bottom: 16px;
}

.problem-item p {
    font-weight: 500;
    color: var(--md-sys-color-on-background);
}

/* ==========================================
   TREATMENT DETAIL
   ========================================== */
.treatment {
    background-color: var(--md-sys-color-surface);
}

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

.treatment-content h2 {
    color: var(--md-sys-color-primary);
    margin-bottom: 8px;
}

.treatment-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--md-sys-color-secondary);
    margin-bottom: 24px;
}

.treatment-content p {
    margin-bottom: 24px;
}

.treatment-badge {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--md-shape-medium);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 30px;
    border: 1px dashed var(--md-sys-color-primary);
}

.treatment-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.treatment-img {
    border-radius: var(--md-shape-large);
    box-shadow: var(--md-elevation-3);
    width: 100%;
    object-fit: cover;
}

/* ==========================================
   PILLARS (WHY US)
   ========================================== */
.pillars {
    background-color: var(--md-sys-color-background);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 12px;
    margin-bottom: 48px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pillar-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-shape-large);
    padding: 36px;
    box-shadow: var(--md-elevation-1);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--md-elevation-3);
    border-color: var(--md-sys-color-primary-container);
}

.pillar-icon-container {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-primary);
    width: 60px;
    height: 60px;
    border-radius: var(--md-shape-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.pillar-card:nth-child(even) .pillar-icon-container {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-secondary);
}

.pillar-info h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery {
    background-color: var(--md-sys-color-surface);
}

.gallery-container-full {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.gallery-track {
    display: flex;
    gap: 20px; /* Margen/espacio entre foto y foto */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: max-content;
}

.gallery-item {
    flex: 0 0 380px; /* Ancho de cada foto */
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--md-elevation-1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--md-elevation-3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--md-sys-color-on-background);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--md-elevation-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.gallery-nav-btn:hover {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: var(--md-elevation-3);
}

.gallery-nav-prev { left: 24px; }
.gallery-nav-next { right: 24px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--md-sys-color-outline);
    opacity: 0.3;
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-dot.active {
    background-color: var(--md-sys-color-primary);
    opacity: 1;
    width: 20px;
    border-radius: var(--md-shape-full);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
    background-color: #f8f9f8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.testimonial-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-shape-large);
    padding: 36px;
    box-shadow: var(--md-elevation-1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid var(--md-sys-color-secondary);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--md-elevation-3);
}

.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-stars {
    color: #ffb300;
    margin-bottom: 16px;
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--md-sys-color-on-background);
}

/* ==========================================
   GUARANTEE CALLOUT BANNER
   ========================================== */
.guarantee-banner {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    padding: 60px 0;
    text-align: center;
}

.guarantee-content {
    max-width: 800px;
    margin: 0 auto;
}

.guarantee-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.guarantee-content p {
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.5;
}

/* ==========================================
   CONTACT SECTION (STANDBY)
   ========================================== */
.contact {
    background-color: var(--md-sys-color-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 8px;
    color: var(--md-sys-color-secondary);
}

.contact-info p {
    margin-bottom: 30px;
}

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

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

.contact-icon {
    font-size: 1.5rem;
    color: var(--md-sys-color-primary);
    margin-top: 2px;
}

.contact-label {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: var(--md-shape-large);
    overflow: hidden;
    box-shadow: var(--md-elevation-2);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 350px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background-color: #191c1a;
    color: #e1e4e1;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #aeb1ad;
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.footer-links a {
    color: #aeb1ad;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--md-sys-color-primary);
}

.footer-bottom {
    border-top: 1px solid #2c312d;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #8c8f8d;
}

/* ==========================================
   LEGAL PAGES STYLING
   ========================================== */
.legal-page {
    padding: 60px 0 100px 0;
    background-color: var(--md-sys-color-surface);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--md-sys-color-secondary);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.legal-content h2::after {
    display: none;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface-variant);
}

/* ==========================================
   FLOATING SPEED DIAL (FAB) FOR CALLS
   ========================================== */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: var(--md-elevation-3);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.5rem;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--md-elevation-4);
}

.fab-whatsapp {
    background-color: #25d366;
}

.fab-phone {
    background-color: var(--md-sys-color-primary);
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .problem-box {
        margin-top: 0;
    }
    
    .problem-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .treatment-grid, .pillars-grid, .testimonials-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .contact-bar {
        display: none;
    }
    
    .navbar {
        height: 70px;
    }
    
    .logo-img {
        height: 48px;
    }
    
    .site-name {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .carousel-slide {
        height: 300px;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==========================================
   MODAL / POPUP BOOKING FORM (Material Design)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-shape-large);
    box-shadow: var(--md-elevation-4);
    width: 90%;
    max-width: 480px;
    padding: 36px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.05);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--md-sys-color-surface-variant);
    border: none;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close-btn:hover {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.modal-title-text {
    font-size: 1.8rem;
    color: var(--md-sys-color-secondary);
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
}

.modal-subtitle-text {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.45;
}

/* Material floating label inputs */
.modal-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--md-sys-color-surface-variant);
    background: transparent;
    border-radius: var(--md-shape-small);
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-fast);
    color: var(--md-sys-color-on-surface);
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: var(--md-sys-color-primary);
}

.modal-form .form-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--md-sys-color-surface);
    padding: 0 6px;
    color: var(--md-sys-color-on-surface-variant);
    transition: var(--transition-fast);
    pointer-events: none;
    font-size: 0.95rem;
}

.modal-form textarea ~ label {
    top: 24px;
}

/* Floating label animation */
.modal-form input:focus ~ label,
.modal-form input:not(:placeholder-shown) ~ label,
.modal-form textarea:focus ~ label,
.modal-form textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.75rem;
    color: var(--md-sys-color-primary);
    font-weight: 600;
}

/* Date input specific label fix */
.modal-form input[type="date"] ~ label {
    top: 0;
    font-size: 0.75rem;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 600;
}

.booking-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 4rem;
    color: #25d366;
    margin-bottom: 16px;
}

.booking-success h3 {
    font-size: 1.6rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 12px;
}

.booking-success p {
    font-size: 1rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.5;
}

/* Animations */
@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
