/* --- VARIABLES & PALETA SII --- */
:root {
    --sii-blue: #003366;      
    --sii-light-blue: #005599;
    --sii-orange: #e35205;    
    --sii-orange-hover: #c44000;
    --fiscloud-blue: #29abe2; 
    
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f9f9f9;      
    --deep-bg: #0f172a;       
    
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-strong: 0 20px 40px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); line-height: 1.6; background-color: white; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }

/* --- NAVEGACIÓN (Glassmorphism) --- */
#main-nav {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85); /* Transparencia */
    backdrop-filter: blur(10px); /* Efecto cristal */
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--sii-blue);
}

.nav-container { 
    display: flex; justify-content: flex-start; align-items: center; 
    width: 90%; max-width: 1200px; margin: 0 auto; 
}

.nav-logo { height: 50px; width: auto; display: block; transition: transform 0.3s; }
.nav-logo:hover { transform: scale(1.03); }

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 130px; 
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--sii-blue) 0%, #001a33 100%);
    color: var(--white);
    border-bottom: 5px solid var(--sii-orange);
}

.container { width: 90%; max-width: 1100px; margin: 0 auto; }

.hero-header { margin-bottom: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-header h1 {
    font-size: 3.2rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px;
}

/* Mejora Highlight Text */
.highlight-text { 
    color: var(--sii-orange); 
    position: relative;
    white-space: nowrap;
}
.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--sii-orange);
    opacity: 0.25;
    z-index: -1;
}

.hero-header .lead-text { font-size: 1.3rem; opacity: 0.95; font-weight: 400; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: flex-start; }

/* --- VIDEO --- */
.video-wrapper {
    position: relative; padding-bottom: 56.25%; background: #000; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.video-placeholder {
    position: absolute; top:0; left:0; width:100%; height:100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: white; cursor: pointer; transition: background 0.4s ease;
}
.video-placeholder:hover { background: rgba(0, 51, 153, 0.3); }
.play-icon { font-size: 70px; margin-bottom: 10px; color: var(--sii-orange); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.video-placeholder:hover .play-icon { transform: scale(1.15); filter: drop-shadow(0 0 15px rgba(227, 82, 5, 0.4)); }

/* --- FORMULARIO --- */
.form-card { background: white; border-radius: 12px; padding: 35px; color: var(--text-dark); box-shadow: var(--shadow-strong); }
.form-header { text-align: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.form-header h3 { color: var(--sii-blue); margin-bottom: 5px; font-size: 1.4rem; font-weight: 800; }

.price-display { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 800; color: #333; line-height: 1; }
.price-display .currency { font-size: 1.5rem; vertical-align: top; }
.price-display .tax { font-size: 1rem; color: #888; font-weight: 600; }

.payment-type { 
    font-size: 0.75rem; background: #e6eff7; color: var(--sii-blue); 
    display: inline-block; padding: 4px 10px; border-radius: 4px; 
    margin-top: 8px; font-weight: 700; text-transform: uppercase; 
}

.input-group { position: relative; margin-bottom: 15px; }
.input-group i { position: absolute; left: 15px; top: 14px; color: #999; transition: color 0.3s; }
.input-group input { width: 100%; padding: 12px 12px 12px 40px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.95rem; outline: none; transition: border 0.3s; }
.input-group input:focus { border-color: var(--sii-blue); }
.input-group input:focus + i { color: var(--sii-blue); }

/* Errores */
.input-group.error input { border-color: #e74c3c; background: #fff5f5; }
.input-group.error i { color: #e74c3c; }
.error-msg { color: #e74c3c; font-size: 0.75rem; margin-top: -12px; margin-bottom: 10px; display: block; font-weight: 600; }

/* BOTONES */
.btn-primary { 
    width: 100%; padding: 18px; background-color: var(--sii-orange); color: white; 
    font-weight: 800; border: none; border-radius: 6px; font-size: 1.1rem; 
    cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; box-shadow: 0 4px 15px rgba(227, 82, 5, 0.3);
}
.btn-primary:hover { background-color: var(--sii-orange-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(227, 82, 5, 0.4); }

.btn-animated { position: relative; overflow: hidden; }
.btn-animated::after {
    content: ''; position: absolute; top: -50%; left: -60%; width: 25%; height: 200%;
    background: rgba(255,255,255,0.3); transform: rotate(30deg); animation: shine 5s infinite;
}
@keyframes shine {
    0% { left: -60%; }
    15% { left: 120%; }
    100% { left: 120%; }
}

.form-divider { text-align: center; margin: 15px 0; position: relative; }
.form-divider span { background: white; padding: 0 10px; color: #999; font-size: 0.9rem; position: relative; z-index: 1; }
.form-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #eee; z-index: 0; }

.btn-secondary {
    width: 100%; padding: 12px; background-color: transparent; color: var(--sii-blue);
    border: 2px solid var(--sii-blue); border-radius: 6px; font-weight: 700; 
    cursor: pointer; transition: all 0.3s ease; text-transform: uppercase;
}
.btn-secondary:hover { background-color: #f0f7ff; }

/* --- SECCIONES --- */
.section-padding { padding: 90px 0; }
.text-center { text-align: center; }
.excel-showcase { background: var(--bg-light); border-top: 1px solid #eee; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--sii-blue); margin-bottom: 15px; }

.shadow-box { box-shadow: var(--shadow-soft); transition: transform 0.3s, box-shadow 0.3s; }
.excel-frame { background: white; padding: 12px; border-radius: 8px; display: inline-block; max-width: 100%; border: 1px solid #ddd; }
.excel-img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* --- PASOS (Micro-interacciones) --- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.step-item { 
    padding: 35px 25px; background: white; border-radius: 12px; border: 1px solid #eee; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    position: relative; overflow: hidden;
}
.step-item:hover { 
    transform: translateY(-10px); 
    border-color: var(--sii-orange); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
}
.step-icon-box { font-size: 3rem; color: var(--sii-blue); margin-bottom: 25px; transition: color 0.3s; }
.step-item:hover .step-icon-box { color: var(--sii-orange); }
.step-number { font-weight: 900; font-size: 4rem; color: #f1f5f9; position: absolute; top: -5px; right: 15px; z-index: 0; }

/* --- FOOTER --- */
.footer-dark { background: var(--deep-bg); color: #cbd5e1; padding: 80px 0 30px; font-size: 0.9rem; border-top: 5px solid var(--sii-orange); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 50px; text-align: left; }
.branding-col { border-right: 1px solid rgba(255,255,255,0.05); padding-right: 20px; }
.dual-logos { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.footer-logo { height: 45px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; transition: opacity 0.3s; }
.footer-logo:hover { opacity: 1; }

/* --- MODAL DE ÉXITO --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 20, 40, 0.92);
    display: none; justify-content: center; align-items: center;
    z-index: 2000; backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-card {
    background: white; padding: 50px 40px; border-radius: 20px;
    max-width: 480px; width: 90%; text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border-top: 10px solid var(--sii-orange);
    transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-card { transform: translateY(0); }
.modal-icon { font-size: 90px; color: var(--sii-orange); margin-bottom: 25px; animation: scaleIn 0.5s ease; }
.modal-card h2 { color: var(--sii-blue); margin-bottom: 15px; font-size: 2rem; font-weight: 800; }
.modal-card p { color: var(--text-light); font-size: 1.15rem; margin-bottom: 35px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-header h1 { font-size: 2.2rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .steps-grid, .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .branding-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 40px; }
    .dual-logos { justify-content: center; }
}

.text-white{
    color: white;
}

/* ------ DROPDOWN DOWNLOAD ------ */
/* Estructura de la Barra Superior */
.navbar-fiscloud {
    background-color: #ffffff;
    border-bottom: 1px solid #e1e1e1;
    padding: 10px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between; /* Esto empuja el logo a la izq y el botón a la der */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 20px;
    gap: 10px;
}

/* Dropdown y Botón */
.download-dropdown {
    position: relative;
}

.download-btn {
    background-color: #007AFF;
    color: white;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px; /* Estilo píldora, más moderno */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}

/* Animación de entrada suave */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0; /* Se alinea a la derecha del botón */
    background-color: #fff;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid #eee;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
    animation: slideDown 0.3s ease forwards; /* Aquí aplicamos la animación */
}

.dropdown-header {
    padding: 12px 16px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
}

.download-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.download-item:hover {
    background-color: #f8f9fa;
}

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

.item-text strong {
    font-size: 14px;
}

.item-text small {
    font-size: 11px;
    color: #666;
}