/* --- ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2E2E2E;
    background-color: #FFFFFF;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #333333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- MENÚ DE NAVEGACIÓN (FIJO) --- */
header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    height: 70px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: #5F8D4E;
    line-height: 1.2;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav ul a:hover {
    color: #5F8D4E;
}

/* --- PORTADA PRINCIPAL (HERO) --- */
.hero {
    margin-top: 90px;
    height: calc(100vh - 90px);
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../galeria/fachada.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    padding: 0 20px;
}

.hero-content h1 {
    color: #FFFFFF;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 25px auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-badge {
    display: inline-block;
    background-color: #5F8D4E;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
}

/* --- SECCIONES COMUNES --- */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #5F8D4E;
}

/* --- NUESTRA HISTORIA --- */
.history-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.history-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.history-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555555;
    text-align: justify;
}

/* --- MISIÓN (FONDO CREMA) --- */
.mision-section {
    background-color: #F8F5F0;
    text-align: center;
}

.mision-box {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.35rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #444444;
    line-height: 1.8;
}

/* --- SERVICIOS (LO QUE OFRECEMOS) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #EFEFEF;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.service-info {
    padding: 25px;
    text-align: center;
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #5F8D4E;
}

/* --- INSTALACIONES / GALERÍA --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- VALORES --- */
.valores-section {
    background-color: #F2F2F2;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.val-card {
    background-color: #FFFFFF;
    padding: 30px 20px;
    text-align: center;
    border-radius: 6px;
    border-top: 4px solid #5F8D4E;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.val-card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.val-card h3 {
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* --- CONTACTO Y UBICACIÓN --- */
.contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.info-item .icon {
    font-size: 1.3rem;
}

.map-box iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- PIE DE PÁGINA --- */
footer {
    background-color: #333333;
    color: #F8F5F0;
    padding: 50px 0 20px 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    border-bottom: 1px solid #444444;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-about h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-about p {
    color: #CCCCCC;
    max-width: 600px;
}

.footer-contact h4 {
    color: #FFFFFF;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.footer-contact p {
    color: #CCCCCC;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    color: #999999;
    font-size: 0.85rem;
}

/* --- ANIMACIÓN JS (APARICIÓN SUAVE) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- ADAPTACIÓN CELULARES --- */
@media (max-width: 900px) {
    .nav-container { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
    .hero { margin-top: 140px; height: calc(100vh - 140px); }
    .hero-content h1 { font-size: 2.3rem; }
    .history-block, .contact-block, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .services-grid, .gallery-grid { grid-template-columns: 1fr; }
    .valores-grid { grid-template-columns: repeat(2, 1fr); }
}