/* ====== TIPOGRAFÍA GENERAL ====== */
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #222;
    background: #fff;
}

/* ====== NAV ====== */
.nav-link {
    font-weight: 500;
    margin-left: 10px;
}

.nav-link.active {
    color: #6d4c41 !important;
    font-weight: 700;
}

/* ====== HERO ====== */
.hero-img {
    max-height: 380px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

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

.hero-title {
    font-size: 2.3rem;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: #444;
}

/* ====== GALERÍA ====== */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-img {
    height: 260px;
    width: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    border-radius: 10px;
}

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

.gallery-caption {
    text-align: center;
    font-weight: 600;
    margin-top: 6px;
}

/* ====== MODAL ====== */
.modal-content {
    background: #fff !important;
    border-radius: 12px;
    padding: 0;
}

.modal-header h5 {
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-close-white {
    filter: invert(1) brightness(2);
}

.modal-backdrop.show {
    opacity: .85 !important;
}

/* ====== BOTONES FLOTANTES ====== */
.wa-btn,
.call-btn {
    position: fixed;
    right: 25px;
    width: 48px;
    height: 48px;
    text-align: center;
    border-radius: 50%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* WhatsApp (VERDE OFICIAL) */
.wa-btn {
    bottom: 30px;
    background: #25D366 !important;
    border: none;
}

.wa-btn img {
    filter: brightness(1.3);
}

/* Llamar (OSCURO ELEGANTE) */
.call-btn {
    bottom: 95px;
    background: #fff !important;
    color: #fff;
    border: none;
    font-size: 22px;
    transition: transform .2s ease;
}

.call-btn:hover {
    transform: scale(1.1);
    background: #fff !important;
}

/* Animación pulso */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.call-btn {
    animation: pulse 1.8s infinite;
}

/* ====== FOOTER ====== */
.footer {
    font-size: 0.9rem;
}

.social-icon img {
    filter: brightness(1) invert(0);
    transition: .2s;
}

.social-icon:hover img {
    transform: scale(1.12);
    filter: brightness(1.5);
}

/* ====== SECCIONES GENERALES ====== */
h2, h4, h5, h6 {
    letter-spacing: 0.3px;
}

/* ====== VALIDACIONES FORMULARIO ====== */
.form-control.is-invalid {
    border: 2px solid #dc3545 !important;
}
.form-control.is-valid {
    border: 2px solid #198754 !important;
}
.error-msg {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 2px;
    display: none;
}

/* ====== OVERLAY DE ÉXITO ====== */
.overlay-message {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:rgba(0,0,0,.65);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:3000;
}

.overlay-content {
    background:#fff;
    padding:30px 35px;
    border-radius:12px;
    max-width:380px;
    width:90%;
    text-align:center;
    animation: fadeIn .35s ease;
}

@keyframes fadeIn {
    from { opacity:0; transform:scale(.88); }
    to   { opacity:1; transform:scale(1); }
}

.icon-img {
    max-width: 120px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

.contact-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));
}