/* Variables de Color Estrictas */
:root {
    --bg-primary: #f7f2ec;
    --dark-accent: #3c4725;
    --vibrant-accent: #f19937;
    --soft-secondary: #dfc8b6;
}

/* --- CONFIGURACIONES GLOBALES --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--dark-accent);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.bg-secondary-soft {
    background-color: var(--soft-secondary);
}

.text-vibrant {
    color: var(--vibrant-accent);
}

/* --- BOTONES GLOBALES --- */
.btn-custom {
    background-color: var(--vibrant-accent);
    color: white;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--dark-accent);
    color: white;
}

.btn-custom:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- MENÚ Y ANIMACIÓN DE HUELLITA (ALTA ESPECIFICIDAD) --- */
#mainNav .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

#mainNav .navbar-nav .nav-link .fa-paw {
    color: #ffffff !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

/* Efecto Hover, Focus y ACTIVO (ScrollSpy) */
#mainNav .navbar-nav .nav-link:hover, 
#mainNav .navbar-nav .nav-link:focus,
#mainNav .navbar-nav .nav-link.active,
#mainNav .navbar-nav .nav-link:hover .fa-paw, 
#mainNav .navbar-nav .nav-link:focus .fa-paw,
#mainNav .navbar-nav .nav-link.active .fa-paw {
    color: var(--vibrant-accent) !important;
}

/* Animación de salto de la huellita solo al hacer hover */
#mainNav .navbar-nav .nav-link:hover .fa-paw {
    transform: translateY(-4px) rotate(20deg) scale(1.2);
}

/* --- SECCIÓN HOME CON PARALLAX --- */
.parallax-home {
    background-image: url('../img/fondo.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.overlay-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 71, 37, 0.6); /* Verde oscuro semi-transparente */
    z-index: 1;
}

/* --- IMAGEN CON MÁSCARA DE CASA EN SECCIÓN NOSOTROS --- */
.masked-image-container {
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    background-image: url('https://placedog.net/800/800'); /* Reemplazar con foto real */
    background-size: cover;
    background-position: center center;
    background-color: var(--dark-accent);
    
    /* Máscara webkit y estándar */
    -webkit-mask-image: url('../img/house-mask.png');
    mask-image: url('../img/house-mask.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    border-radius: 20px;
}

@media (max-width: 768px) {
    .masked-image-container {
        height: 350px;
    }
}

/* --- ANIMACIÓN TARJETAS DE SERVICIOS (INTERACTIVIDAD) --- */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent !important;
}

.service-card i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15) !important;
    border-color: var(--vibrant-accent) !important;
}

.service-card:hover i {
    transform: scale(1.3) rotate(10deg);
}

/* --- GALERÍA GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* --- FORMAS ORGÁNICAS (Por si requieres imágenes normales) --- */
.image-organic {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* --- VALIDACIÓN DE FORMULARIO DE CONTACTO --- */
.input-group-custom {
    position: relative;
}

.error-msg {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s;
}

.is-invalid-input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.is-valid-input {
    border-color: var(--dark-accent) !important;
}

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

/* --- MEJORAS VISUALES FORMULARIO DE CONTACTO PREMIUM --- */
.custom-input {
    background-color: var(--bg-primary);
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.custom-input:focus {
    background-color: #ffffff;
    border-color: var(--vibrant-accent);
    box-shadow: 0 0 0 0.25rem rgba(241, 153, 55, 0.25) !important;
    outline: none;
}

#contacto .fas, #contacto .fab {
    transition: transform 0.3s ease;
}

#contacto .d-flex:hover .fas, #contacto .d-flex:hover .fab {
    transform: scale(1.2) rotate(10deg);
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}
