/* ====== 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;
    color: #222;
}

.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;
}

/* ====== ENLACES DE LA GALERÍA / TRABAJOS ====== */
.gallery-item a,
.gallery-item a:visited {
  color: #ffffff !important; /* texto oscuro */
  text-decoration: none;
}

.gallery-item a:hover {
  color: #f8f6f6 !important; /* café madera al hover */
  text-decoration: none;
}

.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;
}

.gallery-caption,
.gallery-caption a {
  color: #222 !important;
}


/* ====== 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));
}

.contact-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
  opacity: 0.9;
}

/* ====== Opiniones / Carrusel ====== */
.text-star {
  color: #6d4c41;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.carousel-item {
  transition: transform 1s ease, opacity 1s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(37%) sepia(20%) saturate(600%) hue-rotate(350deg);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

section.bg-light {
  background-color: #f9f6f3 !important;
}

section.bg-light p {
  color: #333;
}

section.bg-light .shadow-sm {
  transition: transform .25s ease, box-shadow .25s ease;
}

section.bg-light .shadow-sm:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
@keyframes fadeStars {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.carousel-item.active .text-star {
  animation: fadeStars 0.8s ease forwards;
}

/* ====== Indicadores del carrusel ====== */
.carousel-indicators [data-bs-target] {
  background-color: #6d4c41; /* Café madera */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  opacity: 1;
  transform: scale(1.3);
}
