/* css/style.css - VERSIÓN CORREGIDA Y LIMPIA */

:root {
    --black: #111111;
    --white: #ffffff;
    --gray-bg: #f4f6f8;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: #444;
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--black); font-weight: 800; }
a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-black { background: var(--black); color: white; border: 2px solid var(--black); }
.btn-black:hover { background: white; color: var(--black); transform: translateY(-3px); }

.btn-outline { background: transparent; color: var(--black); border: 2px solid var(--black); }
.btn-outline:hover { background: var(--black); color: white; transform: translateY(-3px); }

/* --- HEADER --- */
.header { background: white; padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 50px; filter: invert(1); } /* Invierte logo blanco a negro */
.nav-desktop a { margin-left: 2rem; color: var(--black); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }

/* --- HERO (PORTADA) --- */
.hero-full {
    height: 90vh; 
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 20px; }
.hero-title-large { 
    font-size: 4rem; 
    margin-bottom: 1rem; 
    line-height: 1.1; 
    text-transform: uppercase; 
}
.hero-subtitle-large { font-size: 1.3rem; margin-bottom: 2rem; opacity: 0.95; }

/* --- SECCIÓN SERVICIOS ANIMADOS (ESTILO JUNK) --- */
.section-padding { padding: 5rem 0; }
.bg-gray { background-color: var(--gray-bg); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.8rem; margin-bottom: 0.5rem; }

.services-illustrated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.service-card-illustrated {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

/* Efecto Hover: Tarjeta sube */
.service-card-illustrated:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--black);
}

.service-card-illustrated h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.service-card-illustrated p { color: #666; margin-bottom: 2rem; }

/* --- ANIMACIÓN FLOTANTE --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.illustration-box {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.illustration-box img {
    max-width: 100%;
    max-height: 100%;
    /* AQUÍ ESTÁ LA ANIMACIÓN */
    animation: float 5s ease-in-out infinite;
}

/* Retraso para que se muevan diferente */
.service-card-illustrated:nth-child(2) .illustration-box img { animation-delay: 2s; }
.service-card-illustrated:nth-child(3) .illustration-box img { animation-delay: 4s; }

/* --- FOOTER --- */
.footer { background: var(--black); color: #999; padding: 4rem 0; }
.footer h4 { color: white; margin-bottom: 1.5rem; }
.footer ul { list-style: none; }
.footer a { color: #999; transition: 0.3s; }
.footer a:hover { color: white; }

/* --- MÓVIL --- */
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--black); margin: 5px 0; }
.mobile-menu { position: fixed; right: -100%; top: 0; width: 80%; height: 100vh; background: white; padding: 2rem; transition: 0.3s; z-index: 1001; display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
.mobile-menu.active { right: 0; }
.mobile-menu a { font-size: 1.2rem; padding: 1rem 0; border-bottom: 1px solid #eee; color: var(--black); font-weight: 700; }

@media (max-width: 768px) {
    .nav-desktop, .header-cta { display: none; }
    .hamburger { display: block; }
    .hero-title-large { font-size: 2.5rem; }
    .illustration-box { height: 140px; }
}
/* --- SERVICIOS & CARDS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: var(--black);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

/* --- PASOS (HOW IT WORKS) --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ddd;
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-heading);
}

.step-title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* --- PRECIOS --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: var(--white);
}

.pricing-card.popular {
    border: 2px solid var(--black);
    transform: scale(1.05);
    z-index: 1;
    position: relative;
}

.popular-badge {
    background: var(--black);
    color: white;
    padding: 5px 15px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin: 1rem 0;
    font-family: var(--font-heading);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

/* --- RESEÑAS --- */
.review-card {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--black);
}

/* --- CONTACTO --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.form-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--gray-border);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
}

.icon {
    font-size: 1.5rem;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--black);
    color: #999;
    padding: 4rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
}

/* --- MENÚ HAMBURGUESA & MÓVIL --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: transparent;
    gap: 5px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--black);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 80px 20px;
    transition: right 0.3s ease;
    z-index: 1001;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--black);
    text-decoration: none;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* --- MEDIA QUERIES (RESPONSIVO) --- */
@media (max-width: 768px) {

    /* Header Móvil */
    .nav-desktop,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 45px;
    }

    /* Hero Móvil */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        display: inline-block;
        text-align: left;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-full {
        height: auto;
        padding: 100px 0;
    }

    .hero-title-large {
        font-size: 2.5rem;
    }

    /* Grillas Móviles */
    .services-grid,
    .pricing-grid,
    .gallery-grid,
    .steps-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 3rem 0;
    }
}