/* Fuente Brittany Signature - archivo en /fonts/BrittanySignature.ttf */
@font-face {
    font-family: "Brittany Signature";
    src: url("../fonts/BrittanySignature.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

:root {
    --primary: #4a3f6b;
    --primary-light: #5d5180;
    --accent: #c9a962;
    --accent-hover: #a68b4b;
    --bg-light: #f5f0fa;
    --bg-cream: #e8dff2;
    --text-dark: #2c3e50;
    --text-muted: #5a6c7d;
    --text-light: #fff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(74, 63, 107, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: "Brittany Signature", Georgia, cursive;
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--text-light);
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: var(--transition);
}

.logo:hover .logo-text {
    color: rgba(255, 255, 255, 0.9);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link.active {
    color: var(--text-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
    border-radius: 3px;
}

/* Slider - CSS seguro compatible con JS actual */
.slider-container {
    position: relative;
    width: 100%;
    margin-top: 70px;
    background: #1a1a1a;
}

.slider {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

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

@media (max-width: 768px) {
    .slide img {
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
}

.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slider button.prev {
    left: 10px;
}

.slider button.next {
    right: 10px;
}

/* Footer - centrado y ancho completo responsive */
.footer {
    width: 100%;
    background: #4a3f6b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
    margin-top: auto;
}

.footer .footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer * {
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.social-link:hover {
    background: var(--accent);
    color: var(--text-light);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.footer-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0.25rem 0;
}

.design-credit {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(74, 63, 107, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-link {
        display: block;
        width: 100%;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo img {
        height: 45px;
    }

    .footer-social {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-text p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    .footer-container {
        padding: 0 15px;
    }
}

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

    .logo-text {
        font-size: 1rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .footer {
        padding: 16px 10px;
    }

    .footer-container {
        padding: 0 15px;
    }
}

/* Animación para el menú hamburguesa */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Estilos para la página Nosotros */
.nosotros-main {
    margin-top: 70px;
    padding: 2rem 0;
    min-height: calc(100vh - 70px);
}

.page-header {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(135deg, rgba(245, 240, 250, 0.95) 0%, rgba(232, 223, 242, 0.8) 100%);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    opacity: 0.8;
}

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

.content-section {
    padding: 4rem 0;
}

.section-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

.section-text p {
    margin-bottom: 1.5rem;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* Grid de Valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
}

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

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

/* Responsive para página Nosotros */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-content {
        padding: 2rem;
        margin: 1.5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text {
        font-size: 1rem;
        text-align: left;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .content-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 3rem 1rem 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .section-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .value-title {
        font-size: 1.25rem;
    }
}

/* Estilos para la página Citas */
.citas-main {
    margin-top: 70px;
    padding: 2rem 0;
    min-height: calc(100vh - 70px);
}

.citas-container {
    padding: 2rem 0;
}

.citas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Calendario */
.calendar-section {
    width: 100%;
}

.calendar-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav-btn {
    background: var(--primary);
    border: none;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    touch-action: manipulation;
}

.calendar-nav-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.calendar-month-year {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    min-width: 0;
}
@media (max-width: 480px) {
    .calendar-days {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
}

.calendar-day {
    aspect-ratio: 1;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    touch-action: manipulation;
}
.calendar-day .calendar-day-num {
    font-weight: 600;
    line-height: 1.2;
}
.calendar-day .slots-count {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-top: 2px;
    opacity: 0.95;
    font-weight: 500;
}

.calendar-day:hover:not(.empty):not(.past):not(.closed):not(.full) {
    background: var(--primary);
    color: var(--text-light);
    transform: scale(1.1);
}

.calendar-day.selected {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--accent);
    font-weight: 700;
}

.calendar-day.past {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.35;
    pointer-events: none;
}

.calendar-day.closed {
    background: #e8dff2;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.full {
    background: #c62828;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.9;
    pointer-events: none;
}
.calendar-day.available-high {
    background: rgba(46, 125, 50, 0.25);
    border-color: rgba(46, 125, 50, 0.5);
    color: #1b5e20;
}
.calendar-day.available-high:hover:not(.empty):not(.past):not(.full),
.calendar-day.available-high.selected {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--accent);
}
.calendar-day.available-low {
    background: rgba(251, 192, 45, 0.35);
    border-color: rgba(251, 192, 45, 0.6);
    color: #f57f17;
}
.calendar-day.available-low:hover:not(.empty):not(.past):not(.full),
.calendar-day.available-low.selected {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--accent);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

/* Formulario */
.form-section {
    width: 100%;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.cita-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    min-height: 44px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--text-light);
    touch-action: manipulation;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--accent);
}

.btn-reservar {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.btn-reservar:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-reservar:active {
    transform: translateY(0);
}

.form-message {
    display: none;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive para página Citas */
@media (max-width: 968px) {
    .citas-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calendar-wrapper,
    .form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .calendar-wrapper,
    .form-wrapper {
        padding: 1.5rem;
    }
    
    .calendar-month-year {
        font-size: 1.2rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .calendar-wrapper,
    .form-wrapper {
        padding: 1rem;
    }
    
    .calendar-header {
        margin-bottom: 1rem;
    }
    
    .calendar-nav-btn {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
    
    .calendar-month-year {
        font-size: 1rem;
    }
    
    .weekday {
        font-size: 0.8rem;
        padding: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
        min-height: 44px;
    }
    .calendar-day .slots-count {
        font-size: 0.6rem;
    }
    
    .form-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .cita-form {
        gap: 1rem;
    }
    
    .btn-reservar {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Estilos para la página Contacto */
.contacto-main {
    margin-top: 70px;
    padding: 2rem 0;
    min-height: calc(100vh - 70px);
}

.contacto-container {
    padding: 2rem 0;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Formulario de Contacto */
.form-section-contacto {
    width: 100%;
}

.form-wrapper-contacto {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-title-contacto {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--text-light);
    resize: vertical;
    min-height: 120px;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.contact-form textarea:hover {
    border-color: var(--accent);
}

.btn-enviar {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.btn-enviar:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-enviar:active {
    transform: translateY(0);
}

/* Mapa */
.map-section {
    width: 100%;
}

.map-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
    display: block;
}

.map-info {
    text-align: center;
    color: var(--text-dark);
    padding: 1rem;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 10px;
}

.map-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.map-info i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.map-info strong {
    color: var(--primary);
}

/* Responsive para página Contacto */
@media (max-width: 968px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-wrapper-contacto,
    .map-wrapper {
        padding: 1.5rem;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .form-wrapper-contacto,
    .map-wrapper {
        padding: 1.5rem;
    }
    
    .form-title-contacto,
    .map-title {
        font-size: 1.5rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .form-wrapper-contacto,
    .map-wrapper {
        padding: 1rem;
    }
    
    .form-title-contacto,
    .map-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .btn-enviar {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .map-info {
        padding: 0.75rem;
    }
    
    .map-info p {
        font-size: 0.9rem;
    }
}

/* ========== Galería: miniaturas y lightbox ========== */
.gallery-page-header {
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    aspect-ratio: 1;
    min-height: 0;
    contain: layout style;
    backface-visibility: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.05);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Lightbox (al hacer clic en una miniatura) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: min(1000px, 92vw);
    max-height: 86vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    display: block;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 1800ms cubic-bezier(0.16, 1, 0.3, 1), opacity 1500ms ease;
}

.lightbox.show-image .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close {
    top: -48px;
    right: 0;
    transform: none;
}

.lightbox-prev {
    left: -56px;
}

.lightbox-next {
    right: -56px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lightbox-icon {
    color: #333;
    font-size: 18px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lightbox-prev {
        left: -44px;
    }

    .lightbox-next {
        right: -44px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-container {
        padding: 1.25rem;
    }

    .lightbox-prev {
        left: -36px;
    }

    .lightbox-next {
        right: -36px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-close {
        top: -44px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(100% + 10px);
        transform: none;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float i {
    font-size: 32px;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }
}

/* Servicios - CSS que sí funciona (al final para prioridad) */
.services-section {
    padding: 40px 20px;
    background: #f5f2fa;
}

.services-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #4a3f6b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.service-card {
    background: #4a3f6b;
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
}

.service-card:link,
.service-card:visited,
.service-card:hover,
.service-card:active {
    color: white;
    text-decoration: none;
}

