/* --- VARIABLES DE MARCA --- */
:root {
    --color-primario: #8C1D1C;   /* Rojo Granate */
    --color-secundario: #D65A47; /* Coral */
    --color-fondo: #FCF5F5;      /* Fondo suave */
    --color-texto: #333333;
    --color-blanco: #FFFFFF;
    --color-whatsapp: #25d366;
}

/* --- RESET Y BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Lora', serif; color: var(--color-primario); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVEGACIÓN RESPONSIVA --- */
.navbar {
    background-color: var(--color-blanco);
    border-bottom: 2px solid var(--color-primario);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img { max-height: 160px; width: auto; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--color-secundario); }
/* --- SECCIÓN GALERÍA --- */
.gallery-section {
    padding: 60px 0;
    background-color: var(--color-blanco);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
    transition: transform 0.5s ease;
}

/* Efecto al pasar el mouse */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Capa de texto sobre la imagen */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(140, 29, 28, 0.8)); /* Degradado con tu color primario */
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Ajuste para móviles: 1 sola columna si la pantalla es muy pequeña */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SECCIÓN HERO --- */
.hero {
    background-color: var(--color-primario);
    color: var(--color-blanco);
    text-align: center;
    padding: 80px 20px;
}

.hero h2 { color: var(--color-blanco); font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; }

/* --- BOTONES --- */
/* Estilos Botón WhatsApp */
/* Botón Flotante de WhatsApp */
.whatsapp-btn {
    position: fixed !important; /* Fuerza la posición fija */
    bottom: 30px !important;
    right: 30px !important;
    width: 60px;  /* Tamaño fijo para asegurar que se vea */
    height: 60px; /* Tamaño fijo */
    background-color: #25d366 !important;
    color: white !important;
    border-radius: 50% !important; /* Lo hace circular */
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    z-index: 99999 !important; /* Máxima prioridad sobre cualquier otro elemento */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128c7e !important;
}

/* El icono dentro del botón */
.whatsapp-btn i {
    font-size: 30px;
    margin: 0;
}
/* Ocultar el texto en celulares muy pequeños para que solo quede el icono redondo */
@media (max-width: 480px) {
    .whatsapp-btn {
        padding: 12px;
        border-radius: 50%;
    }
    .btn-text {
        display: none;
    }
}
/* --- GRID DE SERVICIOS --- */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 50px 0;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid var(--color-secundario);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- MEDIA QUERIES (DISPOSITIVOS MÓVILES) --- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 0.9rem; }
    .hero h2 { font-size: 1.8rem; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
}

.main-footer {
    position: relative; /* Cambiamos fixed por relative */
    width: 100%;
    background-color: #8C1D1C;
    color: white;
    padding: 30px 0;
    text-align: center;
    z-index: 1000;
    /* Eliminamos bottom: 0 y left: 0 */
}