/* ==========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================== */
:root {
    --primary-color: #06182c;   /* Azul Marino Imperial */
    --secondary-color: #0f2d4a; /* Azul de contraste */
    --accent-color: #b89243;    /* Dorado Elegante */
    --accent-hover: #9c7a32;    /* Dorado oscuro para hovers */
    --text-dark: #1e293b;       /* Gris casi negro para textos */
    --text-light: #64748b;      /* Gris suave para descripciones */
    --bg-light: #f8fafc;        /* Fondo gris muy claro */
    --white: #ffffff;
    --font-titles: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-titles);
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.img-responsive {
    width: 100%;
    height: auto;
}

.border-radius {
    border-radius: 8px;
}

.shadow {
    box-shadow: var(--shadow-md);
}

/* ==========================================
   2. BOTONES
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================
   3. MENÚ DE NAVEGACIÓN (NAVBAR)
   ========================================== */
.navbar {
    background-color: var(--primary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-titles);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.accent-color {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover:not(.btn) {
    color: var(--accent-color);
}

/* ==========================================
   4. SECCIÓN HERO
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.main-logo-container {
    max-width: 380px;
    margin-bottom: 30px;
    background: white;
    padding: 15px;
    border-radius: 8px;
	box-shadow: var(--shadow);
}

.hero-description {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.screenshot-hero {
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   5. SECCIÓN SECTORES
   ========================================== */
.sectores {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-sector {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: left;
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}

.card-sector:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent-color);
}

.card-sector .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-sector h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.card-sector p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================
   6. SECCIÓN SHOWCASE (DEMOSTRACIÓN)
   ========================================== */
.showcase {
    padding: 100px 0;
    background-color: var(--white);
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.showcase-item.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.showcase-item.reverse .showcase-text {
    grid-column: 2;
}

.showcase-item.reverse .showcase-img-box {
    grid-column: 1;
    grid-row: 1;
}

.showcase-text h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.showcase-text p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ==========================================
   7. BANNER VERIFACTU
   ========================================== */
.verifactu-banner {
    background: linear-gradient(rgba(6, 24, 44, 0.92), rgba(6, 24, 44, 0.92)), url('img/articulos_tarifas.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.verifactu-badge {
    display: inline-block;
    background-color: #16a34a;
    color: var(--white);
    padding: 6px 16px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.banner-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.banner-content p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.fechas-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.fecha-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 40px;
    border-radius: 8px;
    min-width: 220px;
}

.fecha-card h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.fecha-card .date {
    display: block;
    font-family: var(--font-titles);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.fecha-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ==========================================
   8. SECCIÓN DESCARGA Y CONTACTO
   ========================================== */
.contacto-seccion {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.download-box h2, .form-box h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.download-box p, .form-box p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.demo-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
}

.demo-card h3 {
    margin-bottom: 10px;
}

.demo-card p {
    margin-bottom: 25px;
}

.form-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-form input, .contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input:focus, .contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.direct-call {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.direct-call span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.phone-link {
    font-family: var(--font-titles);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.phone-link:hover {
    color: var(--accent-color);
}

/* ==========================================
   9. PIE DE PÁGINA (FOOTER)
   ========================================== */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--accent-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================
   10. DISEÑO ADAPTABLE (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
    .hero-grid, .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .showcase-item, .showcase-item.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .showcase-item.reverse .showcase-text {
        grid-column: 1;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simplificado para móviles */
    }
    .hero {
        padding: 60px 0;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .fechas-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* ==========================================
   11. ESTILOS PARA INTERACTIVIDAD (JS)
   ========================================== */
.zoomable-img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.zoomable-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(184, 146, 67, 0.3);
}
.click-hint {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: 10px;
    font-style: italic;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sección FAQ (Acordeón) */
.faq-section {
    padding: 80px 0;
    background-color: var(--white);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}
.faq-toggle {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-titles);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.faq-toggle span {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-light);
    font-size: 1rem;
}
.faq-item.open .faq-content {
    max-height: 200px;
    padding-top: 10px;
}
.faq-item.open .faq-toggle span {
    transform: rotate(45deg);
}

/* Ventana Modal (Lightbox) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(6, 24, 44, 0.95); 
}
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border-radius: 6px;
    border: 4px solid #334155;
    animation: zoomEffect 0.3s;
}
#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    text-align: center;
    color: #cbd5e1;
    padding: 15px 0;
    font-family: var(--font-titles);
}
@keyframes zoomEffect {
    from {transform: scale(0.7); opacity: 0;} 
    to {transform: scale(1); opacity: 1;}
}
.modal-close {
    position: absolute;
    top: 35px;
    right: 45px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--accent-color);
}
@media (max-width: 768px) {
    .modal-content { width: 95%; }
    .modal-close { top: 15px; right: 25px; }
}

/* ==========================================
   12. ESTILOS REFINADOS PARA EL PIE DE PÁGINA
   ========================================== */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--accent-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo-box {
    background: white;        
    padding: 10px;
    border-radius: 6px;
    max-width: 150px;             
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer-logo-clean {
    width: 100%;
    height: auto;
}

.footer-text-box {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-text-box {
        text-align: center;
    }
}

/* ==========================================
   13. ESTILOS DE CORREO Y ANTI-SPAM
   ========================================== */
.alert-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    padding: 15px 25px;
    border-radius: 6px;
    color: white;
    display: none;
    max-width: 320px;
    font-size: 14px;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.alert-success { background-color: #16a34a; }
.alert-error   { background-color: #dc3545; }

/* Campo Honeypot anti-spam oculto */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* Modificación menor para el campo textarea del formulario */
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    resize: none;
}
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Ajustes para el Modal de Vídeo Profesional */
.modal-video-wrapper {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 5% auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.video-modal-close:hover {
    color: #e2e8f0;
}