/* CSS Document */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #333;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    font-weight: bold;
}

.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(197,122,168,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 15px;
}

.hero-logo {
    width: 230px;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease;
    
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #C57AA8;
    color: white;
    border-radius: 30px;
    text-decoration: none;
}

/* SECTIONS */
section {
    padding: 60px 20px;
    text-align: center;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

/* CARD */

#nosotros {
    background: rgba(197,122,168,0.1);
    padding: 80px 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ICONOS EN CARDS */
.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(197,122,168,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* AJUSTE CARD */
.card h3 {
    margin-top: 10px;
}

.card:hover .icon {
    transform: scale(1.1);
    transition: 0.3s ease;
}

/* SERVICES */
.service img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ===== TESTIMONIOS SLIDER ===== */

.slider {
    overflow: hidden;
    max-width: 320px;
    margin: auto;
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

.slide p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.slide h4 {
    color: #C57AA8;
}

/* ===== TESTIMONIOS ===== */

.testimonios {
    padding: 60px 20px;
    text-align: center;
    background: rgba(197,122,168,0.08);
}

.testimonios h2 {
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.testimonios-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CARD */
.testimonio-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.testimonio-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonio-card h4 {
    color: #C57AA8;
    font-weight: 500;
}

.testimonio-card p::before {
    content: "“";
    font-size: 2rem;
    color: #C57AA8;
}

.testimonio-card p::after {
    content: "”";
    font-size: 2rem;
    color: #C57AA8;
}

/* HOVER */
.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* FORM */

/* CONTENEDOR GRANDE (MARCO) */
.form-container {
    max-width: 600px; /* 👈 más ancho */
    margin: 30px auto;
    padding: 30px;
    border: 2px solid #C57AA8;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px 30px;
}

/* FORM MÁS ANGOSTO */
.form-container form {
    max-width: 400px; /* 👈 mantiene tamaño original */
    margin: auto;
}

#contacto {
    padding: 80px 20px;
}

#contacto form {
    background: white;
    border-radius: 20px;
    padding: 20px 10px;
    max-width: 700px;
    margin: 30px auto 0;

    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: auto;
}

input, textarea {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.form-nota{
    font-size: 0.85rem;
    line-height: 1.8;
    color: #666;

    background: rgba(197,122,168,0.08);

    padding: 15px;
    border-radius: 10px;

    margin: 10px 0 20px;
}

.form-nota strong{
    color: #C57AA8;
}

#contacto input,
#contacto textarea {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

#contacto input:focus,
#contacto textarea:focus {
    border-color: #C57AA8;
    box-shadow: 0 0 0 2px rgba(197,122,168,0.2);
}

/* MAP */
.map {
    width: 100%;
    height: 300px;
}

/* FOOTER */
footer {
    background: #222;
    color: white;
    padding: 20px;
}

/* WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 80px;
    right: 10px;
    background: #25d366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp:hover {
    transform: scale(1.1);
}

/* ANIMACIONES PREMIUM */

/* ANIMACIÓN BASE */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.hidden h2 {margin-bottom: 15px;

}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMACIÓN EN CASCADA (SIN DEPENDER DE .grid.show) */
.grid .card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.hidden.show .card:nth-child(1) { transition-delay: 0.1s; opacity:1; transform: translateY(0); }
.hidden.show .card:nth-child(2) { transition-delay: 0.2s; opacity:1; transform: translateY(0); }
.hidden.show .card:nth-child(3) { transition-delay: 0.3s; opacity:1; transform: translateY(0); }
.hidden.show .card:nth-child(4) { transition-delay: 0.4s; opacity:1; transform: translateY(0); }
.hidden.show .card:nth-child(5) { transition-delay: 0.5s; opacity:1; transform: translateY(0); }
.hidden.show .card:nth-child(6) { transition-delay: 0.5s; opacity:1; transform: translateY(0); }

/* ZOOM SUTIL EN IMÁGENES */
.service img {
    transition: transform 0.6s ease;
}

.service:hover img {
    transform: scale(1.05);
}

/* REDES SOCIALES */
.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.socials a {
    width: 45px;
    height: 45px;
    background: #C57AA8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.socials svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* HOVER PREMIUM */
.socials a:hover {
    transform: translateY(-5px);
    background: #a85d8c;
}

/* DESKTOP */
@media(min-width: 768px){


    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .slider {
        max-width: 600px;
    }

    testimonios-container {
        flex-direction: row;
        justify-content: center;
    }

    .testimonio-card {
        max-width: 300px;
    }
}