/* ============================================
   CONTACT SECTION — PREMIUM
   ============================================ */

.contact {
    background-color: #fdf6ef;
    padding: 0;
}

/* Barra de titulo — mismo estilo que servicios */
.contact-header {
    background-color: #8b6040;
    padding: 22px 0;
    text-align: center;
    width: 100%;
}

.contact-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

/* Layout interior: info + mapa — mismo ancho que el resto de secciones */
.contact-body {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    min-height: 480px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   PANEL IZQUIERDO — datos de contacto
   ============================================ */

.contact-panel {
    background-color: #fdf6ef;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

/* Cada fila de dato */
.contact-data-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
}

/* Icono circular */
.contact-data-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background-color: #8b6040;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(139, 96, 64, 0.3);
    transition: transform 0.2s ease;
}

.contact-data-item:hover .contact-data-icon {
    transform: scale(1.1);
}

/* Texto del dato */
.contact-data-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-data-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8b6040;
}

.contact-data-text address,
.contact-data-text p {
    font-style: normal;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

.contact-data-text a {
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-word;
}

.contact-data-text a:hover {
    color: #8b6040;
}

/* Horario como tabla limpia */
.contact-schedule {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-schedule li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    padding: 2px 0;
}

.contact-schedule li span:first-child {
    color: #888;
    min-width: 80px;
}

.contact-schedule li span:last-child {
    font-weight: 600;
    color: #444;
}

/* Separador entre items */
.contact-data-divider {
    height: 1px;
    background: linear-gradient(to right, #e8d5c4, transparent);
    margin: 0 0 0 66px;
}

/* ============================================
   PANEL DERECHO — mapa
   ============================================ */

.contact-map {
    position: relative;
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: none;
    filter: saturate(0.9) contrast(1.05);
}

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

.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #fff;
}

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

.social-links li {
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ============================================
   CHAT WIDGET
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.chat-toggle:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
    pointer-events: none;
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
    pointer-events: auto;
}

.chat-header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-close:hover {
    transform: rotate(90deg);
}

.chat-content {
    padding: 1.5rem;
    text-align: center;
    color: #555;
}

.chat-content p {
    margin-bottom: 1rem;
}

.chat-content .btn {
    width: 100%;
}

/* ============================================
   MODAL PRIVACIDAD
   ============================================ */

.privacy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.2s ease;
}

.privacy-modal[hidden] {
    display: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.privacy-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.25s ease;
}

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

.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #ede8e3;
    flex-shrink: 0;
}

.privacy-modal-header h2 {
    font-size: 1.2rem;
    color: #2c2c2c;
    margin: 0;
}

.privacy-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #888;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.privacy-modal-close:hover {
    background: #f0e8df;
    color: #8b6040;
}

.privacy-modal-body {
    overflow-y: auto;
    padding: 24px 28px 32px;
    -webkit-overflow-scrolling: touch;
}

.privacy-modal-body h3 {
    font-size: 1rem;
    color: #8b6040;
    margin: 20px 0 8px;
}

.privacy-modal-body p,
.privacy-modal-body li {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 6px;
}

.privacy-modal-body ul {
    margin: 0 0 10px 20px;
}

.privacy-modal-body a {
    color: #0077b6;
    text-decoration: underline;
}

/* ============================================
   BARRA DE COOKIES
   ============================================ */

.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(25, 25, 25, 0.96);
    color: #fff;
    z-index: 2500;
    padding: 14px 24px;
    animation: slideUp 0.3s ease;
}

.cookie-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-bar[hidden] {
    display: none;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cookie-bar-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-more {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
}

.cookie-more:hover {
    color: #FF9900;
}

.cookie-accept {
    background: #fff;
    color: #111;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.cookie-accept:hover {
    background: #FF9900;
}

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

@media (max-width: 768px) {
    .contact-body {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 32px 24px;
    }

    .contact-map iframe {
        min-height: 320px;
        height: 320px;
    }

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

    .chat-box {
        width: 280px;
        bottom: 70px;
        right: 0;
    }
}

@media (max-width: 480px) {
    .contact-panel {
        padding: 24px 16px;
    }

    .contact-data-item {
        gap: 14px;
    }

    .contact-data-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 0.85rem;
    }

    .chat-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}
