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

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2933;
    background-color: #f5f7fb;
}

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

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

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

.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-intro {
    max-width: 640px;
    color: #4b5563;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    color: #f9fafb;
}

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

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

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

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

.brand-name {
    font-weight: 700;
    font-size: 1rem;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #cbd5f5;
}

.main-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.main-nav a {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background-color: rgba(248, 250, 252, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(248, 250, 252, 0.6);
    color: #e5e7eb;
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(248, 250, 252, 0.08);
}

.btn-small {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

/* Nav toggle mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #f9fafb;
    border-radius: 999px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: stretch;
    color: #f9fafb;
    background-image: url('../img/portada.jpg');
    background-size: cover;
    background-position: center;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.1), transparent 55%), 
                linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    padding: 3.2rem 0 3.8rem;
}

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

.hero-text h1 span {
    color: #fb923c;
}

.hero-text p {
    max-width: 34rem;
    color: #e5e7eb;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.6rem 0 1rem;
}

.hero-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5f5;
}

.hero-contact a {
    font-weight: 600;
    color: #fbbf24;
}

.hero-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 1.5rem;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card h2 {
    font-size: 1.2rem;
    margin-top: 0;
}

.hero-card ul {
    padding-left: 1.2rem;
    margin: 0.8rem 0 0.8rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.hero-card li + li {
    margin-top: 0.15rem;
}

.hero-card .small {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* About */
.about {
    background: #f9fafb;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: start;
}

.about p {
    color: #4b5563;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pill {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
}

.about-card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(209, 213, 219, 0.8);
}

.about-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.about-card ul {
    padding-left: 1.2rem;
    color: #4b5563;
    font-size: 0.95rem;
}

/* Experiences */
.experiences {
    background: #eef2ff;
}

.cards-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(209, 213, 219, 0.7);
    display: flex;
    flex-direction: column;
}

.card img {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1rem 1.1rem 1.1rem;
}

.card-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.card-body p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
}

/* Gallery */
.gallery-section {
    background: #f9fafb;
}

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

.gallery-item {
    border-radius: 0.9rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-item::after {
    content: "Ver";
    position: absolute;
    inset: auto 0 0 0;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #f9fafb;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.25s ease, height 0.25s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.02);
}

.gallery-item:hover::after {
    opacity: 1;
    height: 40%;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 60;
}

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

.lightbox img {
    max-width: min(900px, 92%);
    max-height: 80vh;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #f9fafb;
    font-size: 2rem;
    cursor: pointer;
}

/* Video */
.video-section {
    background: #0f172a;
    color: #e5e7eb;
}

.video-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: center;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Social */
.social-section {
    background: #eef2ff;
}

.social-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
    gap: 2rem;
    align-items: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.social-btn.fb {
    background: #0d47a1;
    color: #f9fafb;
}

.social-btn.ig {
    background: linear-gradient(135deg, #f97316, #ec4899, #6366f1);
    color: #f9fafb;
}

.fb-embed iframe {
    border-radius: 1rem;
    background: #ffffff;
}

/* Contact */
.contact-section {
    background: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
    gap: 2.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    color: #374151;
}

.contact-list li + li {
    margin-top: 0.4rem;
}

.contact-form {
    background: #ffffff;
    padding: 1.6rem 1.7rem;
    border-radius: 1.2rem;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(209, 213, 219, 0.8);
}

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

label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.86rem;
    color: #374151;
}

input,
textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    border: 1px solid #d1d5db;
    font: inherit;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(249, 115, 22, 0.4);
    border-color: #fb923c;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 30px rgba(22, 163, 74, 0.5);
    z-index: 55;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #f9fafb;
    position: relative;
}

.whatsapp-icon::before,
.whatsapp-icon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid #f9fafb;
}

.whatsapp-icon::before {
    inset: 4px;
}

.whatsapp-icon::after {
    width: 7px;
    height: 7px;
    border-top: none;
    border-left: none;
    transform: rotate(35deg);
    bottom: -1px;
    right: 2px;
}

/* Footer */
.main-footer {
    background: #020617;
    color: #9ca3af;
    padding: 1.6rem 0;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

.main-footer a {
    color: #e5e7eb;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-content,
    .about-grid,
    .video-grid,
    .social-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        min-height: auto;
    }

    .hero-card {
        order: -1;
    }

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

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

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        inset: 54px 0 auto 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 0.8rem 1rem 1rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

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

    .nav-toggle {
        display: flex;
    }

    .header-content {
        padding-inline: 0.4rem;
    }

    .hero-content {
        padding-top: 2.2rem;
        padding-bottom: 2.6rem;
    }

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

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

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-card {
        padding: 1.2rem 1.1rem;
    }

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