@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'HolidayFree';
    src: url('../fonts/HolidayFree.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --background: #fafafa;
    --foreground: #262626;
    --card: #ffffff;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --border: #e5e5e5;
    --primary: #B93F85;
    --primary-hover: rgba(185, 63, 133, 0.9);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif;
}

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

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

.container-luxury {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-luxury { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container-luxury { padding: 0 2rem; }
}

.section-spacing {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-spacing { padding-top: 6rem; padding-bottom: 6rem; }
}

.luxury-transition {
    transition: all 0.3s ease;
}

.luxury-button {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.luxury-card {
    background: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.gingham-texture {
    background-color: #e5ded5 !important;
    background-image:
        repeating-linear-gradient(transparent, transparent 10px, rgba(197, 181, 159, 0.3) 10px, rgba(197, 181, 159, 0.3) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(197, 181, 159, 0.3) 10px, rgba(197, 181, 159, 0.3) 20px) !important;
}

.gingham-overlay {
    position: relative;
    background-color: #e5ded5 !important;
}

.gingham-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(transparent, transparent 10px, rgba(197, 181, 159, 0.3) 10px, rgba(197, 181, 159, 0.3) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(197, 181, 159, 0.3) 10px, rgba(197, 181, 159, 0.3) 20px);
    pointer-events: none;
    z-index: 0;
}

/* Excluir .header: si lleva el mismo z-index que main, el main (p. ej. lienzo sitting) queda encima y roba clics / tapa el menú.
   Excluir .modal y .toast: deben seguir position fixed (tapan / flotan sobre la app). */
.gingham-overlay > *:not(.modal):not(.toast):not(.header) {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #e5ded5;
    background-image:
        repeating-linear-gradient(transparent, transparent 10px, rgba(197, 181, 159, 0.3) 10px, rgba(197, 181, 159, 0.3) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(197, 181, 159, 0.3) 10px, rgba(197, 181, 159, 0.3) 20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.logo {
    flex-shrink: 0;
    margin-right: 2rem;
}

.logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

@media (min-width: 768px) {
    .logo-img { width: 150px; }
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--foreground);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.3);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(255,255,255,0.4);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.btn-primary:active {
    transform: scale(0.98);
}

.nav-desktop .btn-primary {
    margin-left: 0.5rem;
}

/* Profile dropdown (platform) */
.profile-dropdown {
    position: relative;
}

.profile-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-dropdown-trigger:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.3);
}

.profile-dropdown-trigger[aria-expanded="true"] {
    color: var(--primary);
    background: rgba(255,255,255,0.4);
}

.dropdown-chevron {
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 10rem;
    background: var(--card);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    padding: 0.25rem 0;
    z-index: 100;
    display: none;
}

.profile-dropdown-menu.open {
    display: block;
}

.profile-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    transition: all 0.2s ease;
}

.profile-dropdown-item:hover {
    background: var(--muted);
    color: var(--primary);
}

.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: rgba(255,255,255,0.4);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    color: var(--foreground);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.icon-menu, .icon-close {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.icon-close { display: none; }

.mobile-menu-btn.open .icon-menu { display: none; }
.mobile-menu-btn.open .icon-close { display: block; }

.icon-menu::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.icon-close::before {
    content: '×';
    font-size: 1.5rem;
    line-height: 1;
}

.mobile-nav {
    display: none;
    overflow: hidden;
}

@media (min-width: 768px) {
    .mobile-nav { display: none !important; }
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-inner {
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary);
    background: rgba(255,255,255,0.5);
}

.mobile-nav-link.active {
    font-weight: 600;
}

.btn-full {
    width: calc(100% - 1rem);
    margin: 1rem 0.5rem 0;
    padding: 0.75rem 1rem;
}

/* Footer */
.footer {
    background: var(--muted);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.footer-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    display: block;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

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

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: white;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    background: rgba(185, 63, 133, 0.1);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

.icon-sm {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.w-4, .w-4 svg { width: 1rem; }
.h-4, .h-4 svg { height: 1rem; }
.w-5, .w-5 svg { width: 1.25rem; }
.h-5, .h-5 svg { height: 1.25rem; }
.w-6, .w-6 svg { width: 1.5rem; }
.h-6, .h-6 svg { height: 1.5rem; }
.w-8, .w-8 svg { width: 2rem; }
.h-8, .h-8 svg { height: 2rem; }

.btn svg {
    flex-shrink: 0;
}

/* Buttons */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: white;
    color: #171717;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(185, 63, 133, 0.2);
}

.form-textarea {
    resize: none;
    min-height: 150px;
}

/* Service/Feature cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.service-card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    background: rgba(185, 63, 133, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: rgba(185, 63, 133, 0.2);
}

.service-card-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.service-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.feature-card {
    background: var(--muted);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: background 0.3s ease;
}

.feature-card:hover {
    background: rgba(245, 245, 245, 0.8);
}

.feature-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: rgba(185, 63, 133, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    max-width: min(24rem, calc(100vw - 3rem));
    box-sizing: border-box;
    padding: 1rem 1.5rem;
    background: #22c55e;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: toastIn 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* Plano sitting: ancho máximo para que el texto no se meta bajo el sidebar (280px); sigue anclado abajo-derecha */
body.sitting-page .toast {
    max-width: min(24rem, calc(100vw - 280px - 3rem));
}

/* Page layout */
.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Hero */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.75rem; }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.25rem; }
}

.hero-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section headers */
.section-header {
    margin-bottom: 4rem;
}

.section-header h1,
.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header h1,
    .section-header h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
    .section-header h1 { font-size: 3rem; }
}

.section-desc {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-8 { margin-bottom: 2rem; }

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.service-card-full {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .service-card-full {
        grid-column: span 2;
    }
}

/* Two column grid */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .two-col-grid { grid-template-columns: 1fr 1fr; }
}

.two-col-grid h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .two-col-grid h2 { font-size: 2.25rem; }
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.check-icon {
    display: flex;
    color: var(--primary);
    flex-shrink: 0;
}

.check-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.tool-highlight {
    aspect-ratio: 1;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(185,63,133,0.2), rgba(185,63,133,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.tool-highlight-inner {
    text-align: center;
}

.tool-highlight-inner svg {
    width: 6rem;
    height: 6rem;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    display: block;
}

.tool-highlight-inner p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.bg-white {
    background: white;
}

.hero-gradient {
    background: linear-gradient(to bottom, #f9f9f9, white);
}

.max-w-3xl { max-width: 48rem; }
.mx-auto { margin: 0 auto; }

/* Páginas legales (privacidad, términos) */
.legal-page { padding-bottom: 2rem; }
.legal-content {
    max-width: 48rem;
    margin: 0 auto;
    padding-bottom: 2rem;
}
.legal-content h2 {
    font-size: 1.35rem;
    margin: 2.25rem 0 0.75rem;
    color: var(--foreground);
}
.legal-content > h2:first-of-type {
    margin-top: 1.5rem;
}
.legal-content p,
.legal-content li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}
.legal-content ul {
    padding-left: 1.35rem;
    margin: 0 0 1rem;
}
.legal-content li {
    margin-bottom: 0.4rem;
}
.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover {
    color: var(--primary-hover);
}
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.w-full { width: 100%; }

/* Services detail page */
.services-detail { display: flex; flex-direction: column; gap: 4rem; }
.service-detail-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .service-detail-item { grid-template-columns: 1fr 1fr; }
    .service-detail-item.reverse .service-detail-content { order: 2; }
    .service-detail-item.reverse .service-detail-visual { order: 1; }
}
.service-detail-content .service-card-icon { margin-bottom: 1.5rem; }
.service-detail-content h2 { font-size: 1.875rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .service-detail-content h2 { font-size: 2.25rem; } }
.service-visual-box {
    aspect-ratio: 1;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(185,63,133,0.2), rgba(185,63,133,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-visual-box svg { width: 8rem; height: 8rem; color: rgba(185,63,133,0.4); }

.additional-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .additional-services-grid { grid-template-columns: 1fr 1fr 1fr; }
    .additional-services-grid--pair {
        grid-template-columns: 1fr 1fr;
        max-width: 56rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Herramienta page */
.badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(185,63,133,0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.badge-inline svg { width: 1rem; height: 1rem; }

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .features-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .benefits-grid { grid-template-columns: 1fr 1fr; }
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground);
}
.benefit-item .check-icon svg { width: 1.25rem; height: 1.25rem; }

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}
@media (min-width: 640px) {
    .cta-buttons { flex-direction: row; }
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-form-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-desc {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: rgba(185,63,133,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.contact-info-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-info-link {
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}
.contact-info-link:hover { color: var(--primary); }
.contact-info-text { color: var(--muted-foreground); }
.contact-social {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.contact-social h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.social-buttons {
    display: flex;
    gap: 1rem;
}
.social-buttons a {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: rgba(185,63,133,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}
.social-buttons a:hover {
    background: var(--primary);
    color: white;
}
.social-buttons svg { width: 1.5rem; height: 1.5rem; }

.contact-form .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-icon { display: inline-flex; }
.btn-icon svg { width: 1rem; height: 1rem; }

/* Login page */
.login-page { min-height: 100vh; }
.login-main {
    padding: 4rem 0 6rem;
    min-height: calc(100vh - 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
}
.luxury-card-float {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    max-width: 28rem;
    margin: 0 auto;
}
.login-card {
    padding: 2.5rem;
}
.login-card-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: var(--primary);
}
.login-icon svg { width: 100%; height: 100%; }
.login-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.login-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
.login-form .form-group {
    margin-bottom: 1.25rem;
}
.login-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--foreground);
}
.login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form input:focus,
.login-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(185,63,133,0.15);
}
.login-form textarea,
.modal-content textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}
.btn-full { width: 100%; }
.login-form .btn { margin-top: 0.5rem; }
.login-error {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #dc2626;
    text-align: center;
}
.login-no-account {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
}
.login-no-account a {
    color: var(--primary);
    font-weight: 500;
}
.login-no-account a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-main { padding: 4rem 0 6rem; }
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}
.dashboard-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.dashboard-header h1.initials {
    font-family: 'HolidayFree', "Playfair Display", serif;
    color: var(--primary);
}
.dashboard-subtitle { color: var(--muted-foreground); }
.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 60rem;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .dashboard-cards { grid-template-columns: repeat(3, 1fr); }
}
.dashboard-card {
    display: block;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.dashboard-card-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.dashboard-card-icon svg { width: 100%; height: 100%; }
.dashboard-card h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.dashboard-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Key data card */
.key-data-card {
    margin-bottom: 3rem;
    padding: 2rem;
}
.key-data-card h2 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.key-data-partners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}
@media (max-width: 640px) {
    .key-data-partners { grid-template-columns: 1fr; }
}
.key-data-partner h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Profile page */
.profile-main { padding: 4rem 0 6rem; }
.profile-header { margin-bottom: 2rem; }
.profile-subtitle { color: var(--muted-foreground); font-size: 0.875rem; }
.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 40rem;
}
.profile-section {
    padding: 2rem;
}
.profile-section h2 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.profile-locale-hint { margin-top: -0.5rem; margin-bottom: 1rem; }
.profile-locale-select {
    max-width: 20rem;
    width: 100%;
}

/* Providers page */
.providers-main { padding: 4rem 0 6rem; }
.providers-header { margin-bottom: 2rem; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}
.back-link:hover { color: var(--primary); }
.providers-header h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.providers-subtitle { color: var(--muted-foreground); font-size: 0.875rem; }
.providers-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.export-dropdown {
    position: relative;
}

.export-dropdown .dropdown-chevron {
    margin-left: 0.25rem;
}

.export-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 8rem;
    background: var(--card);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    padding: 0.25rem 0;
    z-index: 100;
    display: none;
}

.export-dropdown-menu.open {
    display: block;
}

.export-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.2s ease;
}

.export-dropdown-item:hover {
    background: var(--muted);
    color: var(--primary);
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}
.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}
.providers-list { display: flex; flex-direction: column; gap: 1rem; }

.providers-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}
.provider-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
}
.provider-card-body h3 { font-size: 1.125rem; }
.provider-category {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(185,63,133,0.1);
    color: var(--primary);
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}
.provider-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.provider-card-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.provider-name { margin-bottom: 0.25rem; }
.provider-phone {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted-foreground);
    margin-left: 0.5rem;
}
.provider-email { font-size: 0.875rem; color: var(--muted-foreground); margin: 0.25rem 0; }
.provider-notes { font-size: 0.875rem; color: var(--muted-foreground); }
.provider-total-wrap {
    margin-top: auto;
    padding-top: 0.75rem;
    align-self: flex-start;
    cursor: help;
    position: relative;
}
.provider-total-wrap[data-breakdown]:hover::after {
    content: attr(data-breakdown);
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--foreground);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: pre-line;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    max-width: 20rem;
}
.provider-total {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.125rem;
}

.provider-payment-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.provider-payment-paid {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.provider-payment-unpaid {
    background: rgba(234, 179, 8, 0.15);
    color: #a16207;
}

.provider-payment-overdue {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.provider-payment-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
}

.provider-payment-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.provider-payment-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
}

.provider-due-date-wrap {
    flex: 1;
    min-width: 10rem;
}
.provider-card-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.btn-edit, .btn-delete {
    font-size: 0.875rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}
.btn-delete { color: #dc2626; }
.empty-state { text-align: center; padding: 3rem; color: var(--muted-foreground); }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}
.cost-items-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.cost-item-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.cost-item-row .cost-item-name { flex: 1; min-width: 8rem; }
.cost-item-row .cost-item-unit,
.cost-item-row .cost-item-qty {
    width: 5rem;
    text-align: right;
}
.cost-item-row input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}
.cost-item-times, .cost-item-eq {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}
.cost-item-total {
    font-weight: 600;
    color: var(--primary);
    min-width: 5rem;
}
.cost-item-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
}
.cost-item-remove:hover { color: #b91c1c; }
.providers-total {
    padding: 1.25rem 2rem;
    text-align: right;
}
.providers-total-inner {
    font-size: 1.25rem;
}
.providers-total-inner strong { margin-right: 0.5rem; }

/* Modal: cerrado = display none (nada de capa invisible); abierto = fixed a pantalla completa */
.modal {
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal.open {
    display: flex;
}
body.gingham-overlay > .modal {
    position: fixed;
    z-index: 200;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.modal-content {
    position: relative;
    width: 100%;
    max-width: 28rem;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-content h2 { margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1.5rem; }
.new-category-wrap { margin-top: 1rem; }
.new-category-wrap .form-group { margin-bottom: 0; }
.modal-actions .form-group { margin-bottom: 0; }

/* Timeline page */
.timeline-main { padding: 4rem 0 6rem; }
.timeline-header { margin-bottom: 2rem; }
.timeline-subtitle { color: var(--muted-foreground); font-size: 0.875rem; }
.timeline-toolbar { margin-bottom: 2rem; }
.timeline-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.timeline-export-hint {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.timeline-export-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.timeline-export-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}
.timeline-export-option input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}
.timeline-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted-foreground);
}
.timeline-vertical {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 0;
}
.timeline-day-block {
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
}
.timeline-col-labels {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}
.timeline-col-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
    background: var(--background);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}
.timeline-day-line {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}
.timeline-day-label {
    position: relative;
    z-index: 1;
    background: var(--background);
    padding: 0.35rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 999px;
    box-shadow: 0 0 0 4px var(--background);
}
.timeline-time-block {
    position: relative;
}
.timeline-time-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.25rem 1rem;
    position: relative;
    z-index: 1;
}
.timeline-time-row .timeline-line-node {
    min-height: auto;
}
.timeline-time-block.has-side-cards::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    opacity: 0.5;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}
.timeline-events-at-time {
    position: relative;
    z-index: 1;
}
.timeline-event-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 1;
}
.timeline-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 1px;
    min-width: 0;
}
.timeline-slot-left { justify-content: flex-end; padding-right: 1rem; position: relative; z-index: 1; }
.timeline-slot-right { justify-content: flex-start; padding-left: 1rem; position: relative; z-index: 1; }
.timeline-line-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}
.timeline-time-badge {
    position: relative;
    z-index: 2;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(185, 63, 133, 0.3);
}
.timeline-connector {
    position: absolute;
    top: 50%;
    height: 2px;
    background: var(--primary);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}
.timeline-connector-novio {
    right: 50%;
    left: 0;
    margin-right: 4px;
}
.timeline-connector-novia {
    left: 50%;
    right: 0;
    margin-left: 4px;
}
.timeline-slot-center {
    margin-top: 0.5rem;
}
.timeline-card {
    max-width: 280px;
    width: 100%;
    min-width: 0;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.timeline-card:hover { box-shadow: 0 4px 20px rgba(185, 63, 133, 0.15); }
.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.timeline-card-time {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
}
.timeline-card-actions {
    display: flex;
    gap: 0.25rem;
}
.timeline-card-edit, .timeline-card-delete {
    font-size: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}
.timeline-card-delete { color: #dc2626; }
.timeline-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--foreground);
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.timeline-card-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.timeline-card-provider {
    font-size: 0.8rem;
    color: var(--primary);
    margin: 0;
    font-weight: 500;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.provider-select-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.provider-select-row select { flex: 1; }
.new-provider-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Guests management */
.guests-main { padding: 4rem 0 6rem; }
.guests-header { margin-bottom: 2rem; }
.guests-subtitle { color: var(--muted-foreground); font-size: 0.9rem; max-width: 40rem; }
.guests-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; align-items: center; }
.guests-import-help { margin: 0 0 0.5rem; font-size: 0.95rem; }
.guests-import-list { margin: 0 0 1rem 1.25rem; font-size: 0.9rem; line-height: 1.5; }
.guests-import-note { margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted-foreground); }
.guests-import-file-wrap { margin-bottom: 0.75rem; }
.guests-import-file-label { display: block; font-size: 0.875rem; margin-bottom: 0.35rem; font-weight: 500; }
.guests-import-status { font-size: 0.875rem; color: var(--primary); margin: 0 0 0.5rem; }
.guests-td-input { min-width: 6rem; max-width: 10rem; }
.guests-inline-txt {
    width: 100%;
    min-width: 0;
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: rgba(255,255,255,0.85);
}
.guests-td-multi { min-width: 7.5rem; max-width: 15rem; vertical-align: middle; position: relative; }
.guests-dd { position: relative; width: 100%; min-width: 6.5rem; max-width: 15rem; }
.guests-dd--diet { max-width: 16rem; }
.guests-dd-btn {
    width: 100%;
    text-align: left;
    font-size: 0.78rem;
    padding: 0.4rem 1.5rem 0.4rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    color: var(--foreground);
}
.guests-dd-btn::after {
    content: '▾';
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    opacity: 0.65;
    pointer-events: none;
}
.guests-dd-panel {
    max-height: 14rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.guests-dd--diet .guests-dd-panel { max-width: min(22rem, 92vw); }
.guests-dd-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.74rem;
    line-height: 1.35;
    padding: 0.28rem 0;
    cursor: pointer;
    margin: 0;
}
.guests-dd-item input[type="checkbox"] {
    margin: 0.2rem 0 0 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary);
}
.guests-dd-item span { flex: 1; min-width: 0; }
.guests-inline-select {
    width: 100%;
    max-width: 9rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: rgba(255,255,255,0.9);
}
.guests-td-narrow { min-width: 5.5rem; max-width: 9rem; vertical-align: middle; }
.guests-td-num { width: 4.25rem; vertical-align: middle; }
.guests-inline-num {
    width: 3.5rem;
    font-size: 0.8rem;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
}
.guests-td-center { text-align: center; vertical-align: middle; width: 4rem; }
.guests-inline-transport { font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; user-select: none; }
.guests-inline-transport input { margin: 0; cursor: pointer; }
.guests-row-saving { opacity: 0.65; pointer-events: none; }
.guests-row-saved { box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.45); transition: box-shadow 0.2s ease; }
.guests-table-wrap { padding: 0; overflow: hidden; }
.guests-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.guests-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.guests-table th,
.guests-table td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.guests-table th { font-weight: 600; color: var(--foreground); background: rgba(185, 63, 133, 0.06); white-space: nowrap; }
.guests-table tbody tr:hover { background: rgba(185, 63, 133, 0.04); }
.guests-col-diet { max-width: 14rem; }
.guests-actions { white-space: nowrap; }
.guests-actions .btn-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.875rem; padding: 0; }
.guests-actions .guests-del { color: #dc2626; }
.guests-empty { padding: 2rem; text-align: center; color: var(--muted-foreground); }
.guests-modal-wide { max-width: 36rem; }
.guests-cat-presets { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-bottom: 0.75rem; }
.guests-cat-custom:not(:empty) { margin-top: 0.25rem; }
.guests-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; cursor: pointer; }
.guests-custom-cat-row { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.guests-custom-cat-row input { flex: 1; }
.guests-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guests-chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.5rem; background: rgba(185, 63, 133, 0.12); border-radius: 999px; font-size: 0.8rem; }
.guests-chip-remove { background: none; border: none; cursor: pointer; color: var(--muted-foreground); line-height: 1; padding: 0 0.15rem; }
.guests-dietary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; max-height: 16rem; overflow-y: auto; padding: 0.25rem; border: 1px solid var(--border); border-radius: 0.5rem; }
.guests-dietary-item { display: flex; align-items: flex-start; gap: 0.4rem; cursor: help; font-size: 0.8rem; line-height: 1.35; }
.guests-dietary-item input { margin-top: 0.2rem; flex-shrink: 0; }
.guests-dietary-title { border-bottom: 1px dotted rgba(185, 63, 133, 0.4); }
.guests-transport-row { display: flex; align-items: flex-end; padding-top: 1.5rem; }

.guests-stats-panel {
    padding: 1.25rem 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}
.guests-stats-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.guests-stats-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}
.guests-stats-content { max-width: 42rem; }
.guests-stat-block {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(185, 63, 133, 0.15);
}
.guests-stat-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.guests-stat-h {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--foreground);
}
.guests-stat-lead {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.45;
}
.guests-stat-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.65;
}
.guests-stat-list li { margin-bottom: 0.35rem; }
.guests-stat-label { color: var(--muted-foreground); }
.guests-stat-pct {
    font-size: 0.82rem;
    color: var(--muted-foreground);
}
.guests-stat-big {
    margin: 0.25rem 0 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.guests-stat-sub {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}
.guests-stat-list--diet { list-style: disc; }
.guests-stat-diet { font-weight: 500; }
.guests-stat-empty {
    margin: 0;
    padding: 1rem 0;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* Sitting Plan */
/* Vista plano: pantalla completa sin scroll vertical en el documento; el lienzo usa el alto restante (debajo queda .sitting-hint) */
body.sitting-page {
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
body.sitting-page > .header {
    flex-shrink: 0;
}
body.sitting-page > main.sitting-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.sitting-main {
    display: flex;
    min-height: calc(100vh - 6rem);
    padding-top: 1rem;
}
body.sitting-page .sitting-main {
    min-height: 0;
    max-height: none;
}
.sitting-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 1rem;
    background: rgba(255,255,255,0.6);
    border-right: 1px solid var(--border);
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
    align-self: stretch;
    max-height: 100%;
    box-sizing: border-box;
}
.sitting-sidebar-header h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.sitting-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-width: 0;
}
.sitting-filters select {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    max-width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}
.sitting-filter-unassigned {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--foreground, #3d2c36);
    cursor: pointer;
    user-select: none;
}
.sitting-filter-unassigned input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.sitting-canvas-wrap {
    flex: 1 1 auto;
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    padding-bottom: 1rem;
    box-sizing: border-box;
}
body.sitting-page .sitting-canvas-wrap {
    max-height: 100%;
    overflow: hidden;
}
.sitting-toolbar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    pointer-events: none;
}
.sitting-toolbar .btn {
    pointer-events: auto;
}
.sitting-canvas-stage {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 1rem;
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sitting-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    vertical-align: top;
}
.sitting-canvas-stage .canvas-container {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch;
    border-radius: 0;
}
/* Fabric apila lower + upper; el superior debe quedar encima para recibir eventos */
.sitting-canvas-stage .upper-canvas {
    z-index: 2;
}
/* Etiqueta que sigue al puntero al arrastrar invitado entre sillas (o al colocar desde “modo asignar”) */
/* body.gingham-overlay > * fuerza position:relative en hijos directos; sin !important el fantasma deja de ser fixed y no se ve */
body.gingham-overlay > .sitting-seat-drag-ghost {
    position: fixed !important;
    z-index: 2147483000 !important;
}
/* Botón × eliminar mesa: fixed en body para no quedar recortado por overflow:hidden del stage */
body.gingham-overlay > .sitting-table-actions-bar {
    position: fixed !important;
    z-index: 2147483001 !important;
    box-sizing: border-box;
    pointer-events: auto;
    align-items: center;
    gap: 6px;
}
.sitting-table-actions-bar .sitting-edit-table-btn {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    line-height: 1.2;
    color: #3d2c36;
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(185, 63, 133, 0.45);
    border-radius: 0.35rem;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}
.sitting-table-actions-bar .sitting-edit-table-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(185, 63, 133, 0.65);
}
.sitting-table-actions-bar .sitting-delete-table-btn {
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #b93f85;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(185, 63, 133, 0.45);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.13);
    flex-shrink: 0;
}
.table-edit-hint {
    font-size: 0.78rem;
    color: var(--muted-foreground, #6b5c63);
    margin: 0.45rem 0 0;
    line-height: 1.35;
}
body.gingham-overlay > .sitting-seat-unassign-btn {
    position: fixed !important;
    z-index: 2147483002 !important;
    box-sizing: border-box;
    pointer-events: auto;
}
.sitting-seat-drag-ghost {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10060;
    max-width: 220px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.25;
    color: var(--foreground, #3d2c36);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(185, 63, 133, 0.45);
    border-radius: 0.45rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    transform: translate(12px, 12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sitting-hint {
    flex-shrink: 0;
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    max-width: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.sitting-canvas-controls {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    left: auto;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    width: max-content;
    max-width: min(100%, calc(100% - 1.3rem));
    padding: 0.35rem 0.45rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    /* No bloquear el lienzo Fabric: solo los botones reciben clics */
    pointer-events: none;
}
.sitting-canvas-controls button {
    pointer-events: auto;
}
.sitting-zoom-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-end;
}
.sitting-zoom-btn {
    min-width: 2.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.table-wrapper {
    position: absolute;
    transition: transform 0.2s ease;
}
.table {
    position: relative;
    background: rgba(255,255,255,0.9);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
}
.table-circular { border-radius: 50%; min-width: 120px; min-height: 120px; }
.table-rectangular { min-width: 140px; min-height: 100px; }
.table-label {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
.seats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.seat {
    width: 60px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    background: rgba(185,63,133,0.1);
    border: 1px solid rgba(185,63,133,0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.25rem;
}
.seat.vacant, .seat:empty { color: var(--muted-foreground); }
.seat.drag-over {
    background: rgba(185,63,133,0.25);
    border-color: var(--primary);
    transform: scale(1.05);
}
.seat.dragging { opacity: 0.5; }
.sitting-assign-help {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--muted-foreground);
    margin: 0.65rem 0 0.75rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.sitting-assign-help kbd {
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
}
.guest-card {
    padding: 0.75rem 1rem;
    background: var(--card);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    font-size: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}
.guest-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.guest-card.dragging { opacity: 0.6; cursor: grabbing; }
.guest-card--pick {
    outline: 2px solid var(--primary, #b93f85);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(185, 63, 133, 0.2);
    cursor: pointer;
}
.guest-badge {
    font-size: 0.65rem;
    color: var(--primary);
    margin-left: 0.25rem;
}
.guests-list {
    max-height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
}
.empty-state-small { font-size: 0.875rem; color: var(--muted-foreground); padding: 1rem; text-align: center; }
.table-remove {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: none;
    background: #dc2626;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.table-remove:hover { background: #b91c1c; }
