/* ====================================
   EL RINCÓN DE LA FLECHA
   Colores cálidos y elegantes
   ==================================== */

:root {
    /* Paleta cálida inspirada en las fotos */
    --color-cream: #F5F0E8;
    --color-beige: #E8DFD0;
    --color-sand: #D4C4A8;
    --color-caramel: #C9A86C;
    --color-gold: #B8944F;
    --color-terracotta: #C17F59;
    --color-brown: #8B7355;
    --color-dark-brown: #5C4A3A;
    --color-espresso: #3D3027;
    
    /* Colores funcionales */
    --bg-primary: var(--color-cream);
    --bg-secondary: #FFFBF5;
    --bg-dark: var(--color-espresso);
    --text-primary: var(--color-espresso);
    --text-secondary: var(--color-brown);
    --text-light: var(--color-cream);
    --accent: var(--color-gold);
    --accent-hover: var(--color-caramel);
    
    /* Tipografía */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    
    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Transiciones */
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(61, 48, 39, 0.08);
    --shadow-md: 0 4px 20px rgba(61, 48, 39, 0.12);
    --shadow-lg: 0 8px 40px rgba(61, 48, 39, 0.15);
}

/* ====================================
   RESET & BASE
   ==================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.header:not(.scrolled) .logo-text {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-text small {
    font-weight: 400;
    font-size: 0.85em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    position: relative;
}

.header:not(.scrolled) .nav-menu a {
    color: var(--text-light);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.header:not(.scrolled) .nav-toggle span {
    background: var(--text-light);
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/interior-3.jpg') center/cover no-repeat;
    color: var(--text-light);
}

/* Forzar estilos de edición en elementos del hero con máxima especificidad */
body.edit-mode .hero .hero-content .hero-title[data-editable]:focus,
body.edit-mode .hero .hero-content h1.hero-title:focus,
body.edit-mode .hero .hero-content .hero-subtitle[data-editable]:focus,
body.edit-mode .hero .hero-content .hero-tagline[data-editable]:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #222 !important;
    outline: 3px solid #957DAD !important;
    padding: 10px !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

/* Clase .editing - aplicada por JavaScript cuando el elemento tiene foco */
.editing,
[data-editable].editing,
.hero .editing,
.hero-title.editing,
.hero-subtitle.editing,
.hero-tagline.editing,
h1.editing, h2.editing, h3.editing,
p.editing, span.editing {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #222222 !important;
    outline: 3px solid #957DAD !important;
    padding: 10px !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(61, 48, 39, 0.4) 0%,
        rgba(61, 48, 39, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    padding: var(--space-xl);
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.hero-scroll span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

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

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-secondary);
    border: 2px solid var(--accent);
}

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

.btn-outline {
    background: transparent;
    color: currentColor;
    border: 2px solid currentColor;
}

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

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

/* ====================================
   SECTIONS
   ==================================== */

.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header-left {
    text-align: left;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
}

/* ====================================
   ABOUT SECTION
   ==================================== */

.section-about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

.about-features {
    display: grid;
    gap: var(--space-md);
}

.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-sm) var(--space-md);
    align-items: start;
}

.feature-icon {
    font-size: 2rem;
    grid-row: span 2;
}

.feature h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    right: calc(var(--space-md) * -1);
    bottom: calc(var(--space-md) * -1);
    border: 2px solid var(--accent);
    border-radius: 4px;
    z-index: -1;
}

/* ====================================
   CARTA SECTION
   ==================================== */

.section-carta {
    background: var(--bg-primary);
}

.carta-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.carta-tab {
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--color-sand);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.carta-tab:hover,
.carta-tab.active {
    background: var(--accent);
    color: var(--bg-secondary);
    border-color: var(--accent);
}

.carta-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.carta-panel.active {
    display: block;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.menu-item {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.menu-item h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.price {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.menu-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Menú Especial */
.menu-especial {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.menu-especial-header {
    margin-bottom: var(--space-md);
}

.menu-especial-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.price-big {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.menu-especial-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.menu-courses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    text-align: left;
}

.course h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.course ul {
    list-style: none;
}

.course li {
    padding: var(--space-xs) 0;
    font-size: 0.95rem;
    position: relative;
    padding-left: var(--space-md);
}

.course li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.nota-tapas {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--color-caramel), var(--accent));
    color: var(--bg-secondary);
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

/* ====================================
   GALERÍA SECTION
   ==================================== */

.section-galeria {
    background: var(--bg-secondary);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: var(--space-md);
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.galeria-item-large {
    grid-row: span 2;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.galeria-overlay {
    position: absolute;
    inset: 0;
    background: rgba(61, 48, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.galeria-overlay span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
    transform: translateY(20px);
    transition: var(--transition);
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-item:hover .galeria-overlay span {
    transform: translateY(0);
}

/* ====================================
   HORARIOS SECTION
   ==================================== */

.section-horarios {
    background: var(--bg-primary);
}

.horarios-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.horario-item {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 4px;
    text-align: center;
    transition: var(--transition);
}

.horario-item:hover {
    box-shadow: var(--shadow-md);
}

.horario-item.highlight {
    background: linear-gradient(135deg, var(--accent), var(--color-caramel));
    color: var(--bg-secondary);
}

.horario-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.horario-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.horario-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
}

.horario-item.highlight .horario-time {
    color: var(--bg-secondary);
}

.horario-item p:last-child {
    font-size: 0.85rem;
    opacity: 0.8;
}

.horarios-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.horarios-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====================================
   CTA SECTION
   ==================================== */

.section-cta {
    background: linear-gradient(135deg, var(--color-espresso), var(--color-dark-brown));
    color: var(--text-light);
    text-align: center;
    padding: var(--space-xl) 0;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ====================================
   CONTACTO SECTION
   ==================================== */

.section-contacto {
    background: var(--bg-secondary);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contacto-item {
    display: flex;
    gap: var(--space-md);
}

.contacto-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contacto-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.contacto-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contacto-item a:hover {
    color: var(--accent);
}

.contacto-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: var(--bg-secondary);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.contacto-mapa {
    min-height: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contacto-mapa iframe {
    filter: grayscale(20%) sepia(10%);
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background: var(--color-espresso);
    color: var(--text-light);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand .logo-icon {
    font-size: 1.5rem;
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.footer-brand p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-left: var(--space-md);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 992px) {
    .about-grid,
    .horarios-content,
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image::before {
        display: none;
    }
    
    .galeria-grid {
        grid-template-rows: repeat(3, 200px);
    }
    
    .galeria-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        font-size: 1.25rem;
        color: var(--text-primary) !important;
        text-shadow: none !important;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-courses {
        grid-template-columns: 1fr;
    }
    
    .horarios-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
    }
    
    .galeria-item-large {
        grid-column: 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
    }
    
    .footer-brand p {
        margin-left: 0;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .carta-tabs {
        gap: var(--space-xs);
    }
    
    .carta-tab {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-mapa {
        min-height: 300px;
    }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ====================================
   LOGIN & EDIT MODE STYLES
   ==================================== */

.login-link {
    color: var(--text-light);
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.login-link:hover {
    opacity: 1;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}


/* Login Modal */
.modal-login {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-login h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-espresso);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-espresso);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    border-color: var(--accent);
    outline: none;
}

.login-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* Edit Toolbar */
.edit-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 0.75rem 1rem;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.edit-toolbar.active {
    transform: translateY(0);
}

.edit-toolbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-mode-indicator {
    font-weight: 600;
    font-size: 1rem;
}

.edit-toolbar-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-save {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: #2ecc71;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #c0392b;
}

/* Editable elements */
body.edit-mode .header {
    margin-top: 52px;
}

body.edit-mode [data-editable] {
    cursor: text;
    position: relative;
    outline: 2px dashed transparent;
    transition: outline-color 0.3s ease, background-color 0.3s ease;
}

body.edit-mode [data-editable]:hover {
    outline-color: var(--accent);
    background-color: rgba(149, 125, 173, 0.1);
}

/* Elementos editables en modo edición - cuando tienen foco */
body.edit-mode [data-editable]:focus,
body.edit-mode [data-editable][contenteditable="true"]:focus,
body.edit-mode [contenteditable="true"]:focus {
    outline: 3px solid #957DAD !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #222222 !important;
    padding: 0.75rem !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    display: inline-block !important;
}

/* Específicos para el Hero - máxima prioridad */
body.edit-mode .hero .hero-title:focus,
body.edit-mode .hero h1:focus,
body.edit-mode .hero .hero-subtitle:focus,
body.edit-mode .hero .hero-tagline:focus,
body.edit-mode .hero span:focus,
body.edit-mode .hero p:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #222222 !important;
}

/* Forzar estilos para TODOS los elementos editables */
body.edit-mode h1[data-editable]:focus,
body.edit-mode h2[data-editable]:focus,
body.edit-mode h3[data-editable]:focus,
body.edit-mode p[data-editable]:focus,
body.edit-mode span[data-editable]:focus,
body.edit-mode .section-title:focus,
body.edit-mode .section-subtitle:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #222222 !important;
}

/* Editable images */
body.edit-mode [data-editable-image] {
    cursor: pointer;
    position: relative;
}

body.edit-mode [data-editable-image]::after {
    content: '📷 Cambiar';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.edit-mode [data-editable-image]:hover::after {
    opacity: 1;
}

/* Image Modal */
.modal-image {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-image h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--color-espresso);
}

.image-upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--accent);
    background: rgba(149, 125, 173, 0.1);
}

.image-upload-area p {
    color: var(--text-muted);
    margin: 0;
}

.image-upload-area img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Save notification */
.save-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #27ae60;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
}

.save-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.save-notification.error {
    background: #e74c3c;
}

/* Responsive adjustments for edit toolbar */
@media (max-width: 600px) {
    .edit-toolbar-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .edit-mode-indicator {
        font-size: 0.9rem;
    }
    
    .edit-toolbar-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-save, .btn-cancel {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}


/* Logo imagen */
.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header .logo-img {
    width: 45px;
    height: 45px;
}

.footer-brand .logo-img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

/* Corregir color del texto del logo en el footer */
.footer .logo-text,
.footer-brand .logo-text {
    color: var(--text-light);
}

/* Logo en el Hero */
.hero-logo {
    display: block;
    margin: 0 auto;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

@media (max-width: 768px) {
    .hero-logo {
    display: block;
    margin: 0 auto;
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
    display: block;
    margin: 0 auto;
        width: 150px;
        height: 150px;
    }
}
