*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1b2330;
    background-color: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* Header */

.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
}

.logo-tagline {
    font-size: 0.8rem;
    color: #64748b;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.9rem;
}

.main-nav a {
    position: relative;
    padding-bottom: 0.1rem;
    color: #0f172a;
    font-weight: 500;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00a79d, #ff6488);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
}

/* Hero */

.hero {
    position: relative;
    background-image: url('../img/portada.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 5.5rem 0 4.5rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 167, 157, 0.9), rgba(255, 100, 136, 0.65));
    mix-blend-mode: multiply;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    align-items: center;
    gap: 2.5rem;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.hero-text h1 span {
    display: block;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 0.98rem;
    max-width: 34rem;
    margin-bottom: 1.2rem;
}

.hero-list {
    list-style: none;
    display: grid;
    gap: 0.3rem;
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}

.hero-list i {
    margin-right: 0.4rem;
    color: #fffbeb;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    text-align: center;
    gap: 0.45rem;
}

.btn.primary {
    background: #ff6488;
    border-color: #ff6488;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.35);
}

.btn.secondary {
    background: rgba(15, 23, 42, 0.12);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.4);
}

.btn.secondary:hover {
    background: rgba(15, 23, 42, 0.22);
}

.btn.outline {
    border-color: #00a79d;
    color: #00a79d;
    background: transparent;
}

.btn.outline:hover {
    background: rgba(0, 167, 157, 0.08);
}

.btn.full {
    width: 100%;
}

.hero-phones {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.hero-phones a {
    font-weight: 600;
}

.hero-social {
    display: flex;
    gap: 0.55rem;
}

.hero-social a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.hero-social a:hover {
    background: rgba(15, 23, 42, 0.24);
}

.hero-image {
    justify-self: center;
}

.hero-image img {
    max-width: 320px;
    border-radius: 1.75rem;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.45);
    border: 4px solid rgba(255, 255, 255, 0.7);
    background: #fff;
}

/* Sections */

.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header.left {
    text-align: left;
}

.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.section-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.service-card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.2rem 1.1rem 1.1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, #ff6488, #00a79d);
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.service-card p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Promociones & galería */

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.promo-grid img {
    border-radius: 0.85rem;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.promo-grid img:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
    filter: brightness(1.05);
}

.promo-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.75rem;
    text-align: center;
}

/* Testimonios */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: -24px;
    right: 16px;
    font-size: 5rem;
    color: rgba(248, 113, 113, 0.28);
    font-family: serif;
}

.testimonial-text {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.9rem;
}

.testimonial-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

/* Video */

.video-section .video-wrapper {
    max-width: 720px;
    margin: 0 auto;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Contacto */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-list {
    list-style: none;
    margin-bottom: 1.3rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    color: #4b5563;
}

.contact-list i {
    margin-top: 0.15rem;
    color: #00a79d;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.5rem 1.4rem 1.3rem;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.contact-form-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: #6b7280;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00a79d;
    box-shadow: 0 0 0 1px rgba(0, 167, 157, 0.25);
}

.form-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Footer */

.main-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.4rem 0 1.6rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.8rem;
}

.footer-made a {
    color: #f97373;
    font-weight: 500;
}

.footer-made a:hover {
    text-decoration: underline;
}

/* Modal gallery */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 60;
    padding: 1rem;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 720px;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #020617;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* WhatsApp button */

.whatsapp-float {
    position: fixed;
    bottom: 1.4rem;
    right: 1.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.55);
    z-index: 55;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    }

    .promo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.55rem 0;
    }

    .main-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 0.75rem 1rem 0.9rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.4);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.16s ease, opacity 0.16s ease;
    }

    .main-nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: block;
        color: #0f172a;
    }

    .hero {
        padding: 4.6rem 0 3.2rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.1rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 260px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .promo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-text h1 {
        font-size: 1.85rem;
    }
}
