
:root {
    --color-primary: #c62828;
    --color-primary-dark: #8e0000;
    --color-accent: #0277bd;
    --color-bg: #f5f5f5;
    --color-text: #222222;
    --radius-card: 18px;
    --shadow-soft: 0 12px 30px rgba(0,0,0,0.12);
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background-color: #ffffff;
    line-height: 1.6;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: 0.02em;
}

.logo-area img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

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

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

.main-nav a:hover {
    background: var(--color-primary);
    color: #fff;
}

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

/* Hero */

.hero {
    position: relative;
    min-height: 70vh;
    color: #fff;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(120deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)),
        url("../img/portada.jpg");
    background-size: cover;
    background-position: center;
}

.hero-inner {
    position: relative;
    padding-block: 4rem;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
    gap: 2.5rem;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}

.hero-text p {
    max-width: 38rem;
    font-size: 1rem;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

.btn.primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.btn.primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.3);
}

.btn.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

.btn.ghost:hover {
    background: rgba(255,255,255,0.12);
}

.hero-card {
    background: rgba(255,255,255,0.96);
    color: #222;
    border-radius: 20px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-soft);
    align-self: center;
}

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

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-card li {
    font-size: 0.95rem;
    padding-block: 0.2rem;
}

/* Sections */

.section {
    padding-block: 4rem;
}

.section.alt {
    background: var(--color-bg);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.section-intro {
    margin-top: 0;
    max-width: 36rem;
}

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

.image-frame {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.cards-inline {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.mini-card {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}

.mini-card h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.cards-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-soft);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

/* Redes */

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-block: 1.2rem;
}

.social-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-btn.fb {
    background: #1877f2;
    color: #fff;
}

.social-embed iframe {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

/* Galería */

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

.gallery-item {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.2);
}

/* Video */

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

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

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

/* Contacto */

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

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

.contact-form {
    background: #fff;
    padding: 1.6rem 1.5rem;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
    border-color: transparent;
}

.form-note {
    font-size: 0.8rem;
    margin-top: 0.6rem;
    color: #555;
}

/* WhatsApp float */

.whatsapp-float {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 60;
}

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

/* Footer */

.site-footer {
    background: #111;
    color: #eee;
    padding-block: 1.8rem;
    margin-top: 2rem;
}

.footer-inner {
    text-align: center;
    font-size: 0.9rem;
}

.footer-inner a {
    color: #fff;
    text-decoration: underline;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(900px, 96vw);
    max-height: 90vh;
    border-radius: 14px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}

/* Responsive */

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

    .hero-card {
        margin-top: 1.5rem;
    }

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

    .video-section {
        gap: 1.4rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 0.75rem 1.5rem 1rem;
        gap: 0.4rem;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

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

    .nav-toggle {
        display: block;
    }
}
