:root {
    --color-primary: #2B3990;
    --color-primary-dark: #0b102b;
    --color-accent-gold: #FFD700;
    --color-accent-red: #ef4444;
    --color-bg: #f4f5f7;
    --color-bg-alt: #f8fafc;
    --color-text-main: #1f2933;
    --color-text-muted: #4b5563;
    --color-surface: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-header h2 .section-icon {
    margin-right: 0.45rem;
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

h1, h2, h3, h4 {
    color: #111827;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    line-height: 1.2;
}

h2 {
    font-size: 1.9rem;
}

h2 .section-icon {
    margin-right: 0.45rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    font-size: 0.98rem;
}

/* HEADER */

.main-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(14, 23, 61, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: #e5e7eb;
}

.logo-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.logo-subtitle {
    font-weight: 400;
    font-size: 0.85rem;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.main-nav a {
    position: relative;
    padding-bottom: 0.15rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-gold);
    transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(156, 163, 175, 0.6);
    background: transparent;
    padding: 4px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #e5e7eb;
}

/* BOTONES */

.btn-primary,
.btn-secondary,
.btn-outline-sm,
.btn-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-red));
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* Variante del botón secundario sobre el fondo oscuro del hero */
.hero .btn-secondary {
    color: #e5e7eb;
    border-color: rgba(249, 250, 251, 0.8);
}

.hero .btn-secondary:hover {
    background: var(--color-accent-gold);
    color: #111827;
    border-color: var(--color-accent-gold);
}

.btn-outline-sm {
    padding: 0.4rem 1.1rem;
    background: transparent;
    color: var(--color-accent-gold);
    border: 1px solid var(--color-accent-gold);
    font-size: 0.8rem;
}

.btn-outline-sm:hover {
    background: var(--color-accent-gold);
    color: #111827;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

/* HERO */

.hero {
    position: relative;
    /* Primera capa: imagen de portada centrada. Segunda capa: fondo para los lados */
    background-image: url('Imagenes/Foto para portada Principal.png'), url('Imagenes/fondo para la web.png');
    background-size: 60% auto, cover;
    background-position: center 0%, center;
    background-repeat: no-repeat, no-repeat;
    background-color: #0b1024;
    color: #e5e7eb;
    padding: 3.8rem 0 4.5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.55));
    opacity: 0.9;
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr);
    gap: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    max-width: 40rem;
    margin: 0 auto;
}

.hero-text h1 {
    color: #f9fafb;
    margin: 0 0 1rem;
}

.hero-subtitle {
    color: #e5e7eb;
    opacity: 0.9;
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.7rem 0 1.1rem;
    justify-content: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.badge {
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.55);
    padding: 0.25rem 0.8rem;
    font-size: 0.78rem;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.35);
}

.hero-image-wrapper {
    position: relative;
    display: none;
}

.hero-card {
    position: relative;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.hero-card img {
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

.hero-card-text h3 {
    font-size: 1.05rem;
    color: #f9fafb;
    margin-bottom: 0.25rem;
}

.hero-card-text p {
    font-size: 0.9rem;
    color: #e5e7eb;
    opacity: 0.9;
}

/* QUIÉNES SOMOS */

.section-grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.section-grid-two p {
    margin-bottom: 0.75rem;
}

.list-check {
    list-style: none;
    margin: 0.5rem 0 1rem;
}

.list-check li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.35rem;
}

.list-check li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #2B3990;
}

.about-highlights {
    display: grid;
    gap: 1rem;
}

.card-stat {
    background: var(--color-surface);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e5e7eb;
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #4b5563;
}

.card-brand-logos {
    background: #0f172a;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    color: #e5e7eb;
    text-align: center;
}

.card-brand-logos span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.brand-logos-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.65rem;
}

.brand-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.brand-logo-item img {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}

.brand-logo-item span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #e5e7eb;
}

/* LIDERAZGO */

.section-highlight {
    background: linear-gradient(90deg, #1b2553, var(--color-primary));
    color: #f9fafb;
    padding: 2.8rem 0;
}

.leadership-block {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.leadership-text h2 {
    color: var(--color-accent-gold);
    margin-bottom: 0.7rem;
}

.leadership-main {
    font-size: 1.05rem;
}

/* PRODUCTOS */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-card img {
    height: 170px;
    object-fit: cover;
    margin: 0 auto;
}

.product-card-link {
    display: block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.product-img-trampa {
    object-position: top center;
}

.product-img-clove {
    object-position: top center;
}

.product-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.product-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    color: #111827;
    text-align: center;
}

.product-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: justify;
}

.subsection {
    margin-top: 3rem;
}

.subsection h3 {
    font-size: 1.15rem;
    color: #111827;
    margin-bottom: 1rem;
}

.variety-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.variety-column ul {
    list-style: none;
}

.variety-column li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* FAQ */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.75rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0.75rem 1rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "\25BC"; /* flecha hacia abajo */
    font-size: 0.8rem;
    color: #fb923c; /* naranja suave */
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item[open] {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.faq-item p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-align: justify;
}

/* MODAL IMÁGENES PRODUCTO */

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.image-modal.is-open {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.image-modal-dialog {
    position: relative;
    background: transparent;
    border-radius: 14px;
    padding: 0;
    max-width: min(90vw, 640px);
    width: auto;
    max-height: 80vh;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.8);
    border: none;
}

.image-modal-dialog img {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    display: block;
    border-radius: 12px;
}

.image-modal-close {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 1.4rem;
    cursor: pointer;
}

/* BENEFICIOS */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    background: var(--color-surface);
    border-radius: 14px;
    padding: 1.3rem 1.2rem;
    border: 1px solid #e5e7eb;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    font-weight: 700;
}

.benefit-icon i {
    font-size: 0.95rem;
}

.benefit-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: justify;
}

/* CONTACTO */

.section-contact {
    background: #0f172a;
    color: #e5e7eb;
}

.section-contact h2 {
    color: var(--color-accent-gold);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-list {
    list-style: none;
    margin: 0.75rem 0 1rem;
}

.contact-list li {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.contact-list a {
    color: #FFD700;
}

.contact-form {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.65);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.form-field label {
    font-size: 0.83rem;
    margin-bottom: 0.25rem;
    color: #e5e7eb;
}

.form-field input,
.form-field textarea {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.7);
    color: #f9fafb;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid #FFD700;
    outline-offset: 1px;
}

/* FOOTER */

.main-footer {
    background: #020617;
    color: #e5e7eb;
    padding: 2.5rem 0 1.2rem;
    border-top: 1px solid rgba(31, 41, 55, 0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-col p,
.footer-col a {
    font-size: 0.86rem;
    color: #9ca3af;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(55, 65, 81, 0.9);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: #9ca3af;
}

.footer-credit {
    font-size: 0.75rem;
    opacity: 0.85;
}

.footer-credit a {
    color: #e5e7eb;
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: minmax(0, 1.7fr);
    }

    .hero-image-wrapper {
        max-width: 420px;
        margin: 1.5rem auto 0;
        width: 100%;
    }

    .section-grid-two,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-inner.nav-open .main-nav,
    .header-inner.nav-open .nav-cta {
        display: flex;
    }

    .header-inner.nav-open {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-cta {
        align-self: flex-start;
    }

    .hero {
        padding: 4.2rem 0 3.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cards-grid,
    .benefits-grid,
    .variety-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero-card {
        padding: 0.9rem;
    }

    .product-card img {
        height: 150px;
    }
}
