/* ============================= */
/* COLORES Y RESET               */
/* ============================= */

:root {
    --verde: #4b6b36;
    --verde-oscuro: #314726;
    --cafe: #8b5a2b;
    --beige: #f5e9d3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background-color: var(--beige);
    color: #333;
    line-height: 1.6;
}

/* ============================= */
/* HEADER                        */
/* ============================= */

header {
    background-color: var(--verde-oscuro);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid var(--cafe);
}

/* ============================= */
/* HERO                          */
/* ============================= */

.hero {
    background: url('tarde.jpg') center/cover no-repeat;
    color: white;
    padding: 150px 20px;
    text-align: center;
    background-blend-mode: darken;
    background-color: rgba(0,0,0,0.4);
}

.hero h2 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px black;
}

.frase-desarrollo {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 10px;
}

/* ============================= */
/* GALERÍA – ESCRITORIO (ABANICO)*/
/* ============================= */

.galeria {
    padding: 50px 20px;
    text-align: center;
}

.abanico {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.abanico img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--cafe);
    transition: transform 0.4s;
    transform-origin: bottom center;
}

/* efecto abanico SOLO escritorio */
.abanico img:nth-child(1) { transform: rotate(-20deg); }
.abanico img:nth-child(2) { transform: rotate(-10deg); }
.abanico img:nth-child(3) { transform: rotate(0deg); }
.abanico img:nth-child(4) { transform: rotate(10deg); }
.abanico img:nth-child(5) { transform: rotate(20deg); }

.abanico img:hover {
    transform: scale(1.2) rotate(0deg);
    z-index: 10;
}

/* ============================= */
/* TARJETA SOBRE NOSOTROS        */
/* ============================= */

.card {
    max-width: 750px;
    margin: auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-family: "Georgia", serif;
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    border: 18px solid var(--cafe);
    background-image: linear-gradient(135deg, #d7b28c 0%, #c69c6d 50%, #b58863 100%);
}

/* ============================= */
/* SERVICIOS                     */
/* ============================= */

.servicios {
    text-align: center;
    padding: 40px 20px;
}

.grande {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--verde);
}

.lista-servicios {
    list-style: circle;
    margin: 20px auto;
    display: inline-block;
    text-align: left;
}

.lista-servicios li {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ============================= */
/* CONTACTO Y FOOTER             */
/* ============================= */

#contacto {
    text-align: center;
    padding: 40px 20px;
}

footer {
    background-color: var(--verde-oscuro);
    color: white;
    text-align: center;
    padding: 15px;
    border-top: 4px solid var(--cafe);
}

/* ============================= */
/* RESPONSIVE – TABLET Y MÓVIL   */
/* ============================= */

@media (max-width: 768px) {

    header h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .frase-desarrollo {
        font-size: 1rem;
    }

    /* GALERÍA RESPONSIVE */
    .abanico {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .abanico img {
        width: 100%;
        height: 160px;
        transform: none;   /* desactiva abanico */
        transition: none;
    }

    .card {
        margin: 0 15px;
        padding: 25px;
    }

    .lista-servicios li {
        font-size: 1rem;
    }
}

/* ============================= */
/* RESPONSIVE – MÓVIL PEQUEÑO    */
/* ============================= */

@media (max-width: 480px) {

    .abanico {
        grid-template-columns: 1fr;
    }

    .abanico img {
        height: 180px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
}
