/* -------------------------------------- */
/* 1. Base y Tipografía */
/* -------------------------------------- */

:root {
    --primary-color: #007bff; /* Azul profesional */
    --secondary-color: #f8f9fa; /* Gris claro para fondos */
    --dark-color: #343a40; /* Texto oscuro */
    --font-family: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    background-color: white;
}

h1, h2 {
    color: var(--dark-color);
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; text-align: center; margin-bottom: 40px; }

/* -------------------------------------- */
/* 2. Botón CTA */
/* -------------------------------------- */

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.cta-button:hover {
    background-color: #0056b3; /* Tono de azul más oscuro al pasar el ratón */
}

/* -------------------------------------- */
/* 3. Sección HERO (Principal) */
/* -------------------------------------- */

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/foto_principal.jpg') center center no-repeat;
    background-size: cover;
    height: 70vh; /* 70% de la altura de la vista */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    color: white;
    margin-bottom: 10px;
}

.hero-content .subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* -------------------------------------- */
/* 4. Sección de Detalles (Cards) */
/* -------------------------------------- */

.details-section {
    padding: 60px 20px;
    background-color: var(--secondary-color);
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 220px;
    flex-grow: 1;
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* -------------------------------------- */
/* 5. Galería */
/* -------------------------------------- */

.gallery-section {
    padding: 60px 20px;
    text-align: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Recorta la imagen para llenar el contenedor sin distorsionar */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.callout {
    font-style: italic;
    color: gray;
}

/* -------------------------------------- */
/* 6. Contacto */
/* -------------------------------------- */

.contact-section {
    padding: 60px 20px;
    background-color: #e9ecef; /* Un gris un poco más oscuro */
    text-align: center;
}

.contact-section form {
    max-width: 500px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-section input,
.contact-section textarea {
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
}

.contact-section textarea {
    resize: vertical;
}

/* -------------------------------------- */
/* 7. Footer */
/* -------------------------------------- */

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* -------------------------------------- */
/* 8. Media Queries (Responsivo) */
/* -------------------------------------- */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        max-width: 90%;
    }
    .image-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
    }
}