/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #f5f5f5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* CABECERA */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #1b4332;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
}

nav a {
    color: white;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.75;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('fotos/hero.jpg') center/cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-texto h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 700px;
}

.hero-texto p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* BOTÓN */
.btn {
    background: #40916c;
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s;
}

.btn:hover {
    background: #2d6a4f;
}

/* SECCIONES */
.seccion {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.fondo-gris {
    background: #f4f4f4;
    max-width: 100%;
    padding: 5rem 2rem;
}

.fondo-gris>* {
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1b4332;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.subtitulo {
    text-align: center;
    color: #555;
    margin-bottom: 2.5rem;
}

/* CARDS SERVICIOS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card span {
    font-size: 2.5rem;
}

.card h3 {
    margin: 1rem 0 0.5rem;
    color: #1b4332;
}

.card p {
    color: #555;
    font-size: 0.95rem;
}

/* GALERÍA */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.galeria-grid img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center center;
    border-radius: 8px;
    transition: transform 0.3s;
}

.galeria-grid img:hover {
    transform: scale(1.03);
}

/* CONTACTO */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form input,
form textarea {
    padding: 0.85rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #40916c;
}

.datos-contacto {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.dato {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.dato span {
    font-size: 1.8rem;
}

.dato strong {
    display: block;
    color: #1b4332;
    margin-bottom: 0.2rem;
}

.dato a,
.dato p {
    color: #555;
    font-size: 0.95rem;
}

.dato a:hover {
    color: #40916c;
}

/* FOOTER */
footer {
    background: #1b4332;
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-texto h1 {
        font-size: 1.8rem;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    nav a {
        margin: 0 0.5rem;
    }
}

/* SOBRE NOSOTROS */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-texto p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.sobre-imagen img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: center top;
    max-height: 550px;
}

h2.texto-izquierda {
    text-align: left;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .sobre-grid {
        grid-template-columns: 1fr;
    }
}

/* NAV ACTIVO */
nav a.activo {
    border-bottom: 2px solid white;
    padding-bottom: 2px;
}

h1,
h3 {
    font-family: 'Playfair Display', serif;
}

/* WHATSAPP FLOTANTE */
.whatsapp-flotante {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    z-index: 999;
    transition: transform 0.2s;
}

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

.whatsapp-flotante img {
    width: 100%;
    height: 100%;
}

/* ANIMACIONES SCROLL */
.oculto {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESEÑAS */
#formulario-resena {
    max-width: 600px;
    margin: 0 auto;
}

.estrellas {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.estrella-grupo {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.3rem;
}

.estrella-grupo input {
    display: none;
}

.estrella-grupo label {
    font-size: 2rem;
    cursor: pointer;
    filter: grayscale(1);
    transition: filter 0.2s;
}

.estrella-grupo input:checked~label,
.estrella-grupo label:hover,
.estrella-grupo label:hover~label {
    filter: grayscale(0);
}

/* CTA RESEÑA GOOGLE*/
.resena-cta {
    text-align: center;
    margin-top: 1rem;
}

.resena-cta p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

#resenas .subtitulo {
    margin-top: 1rem;
    margin-bottom: 0;
}