/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #081B50 0%, #264087 100%);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(200,200,200,0.2)"/><circle cx="40" cy="70" r="0.8" fill="rgba(230,230,230,0.15)"/><circle cx="70" cy="10" r="0.6" fill="rgba(255,255,255,0.08)"/><circle cx="10" cy="90" r="1.2" fill="rgba(200,200,200,0.1)"/></svg>');
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 78px);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: clamp(24px, 3vw, 36px);
    color: #ffffff;
    margin-bottom: 20px;
}

p {
    opacity: 0.9;
    margin-bottom: 15px;
}

/* Header with glass morphism */
.header {
    padding: 20px 0;
    background: rgba(8, 27, 80, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(8, 27, 80, 0.98);
    backdrop-filter: blur(30px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
            background-clip: text; /* Versión estándar */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback adicional */
    text-decoration: none;
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3)); }
    to { filter: drop-shadow(0 0 16px rgba(220, 220, 220, 0.4)); }
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-item {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 10px 0;
    font-weight: 500;
}

.nav-item:hover {
    color: #ffffff;
    transform: translateY(-2px);
    background: none;
    border: none;
    box-shadow: none;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    border-radius: 1px;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.nav-item:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    animation: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: slideInDown 1s ease-out 0.3s both;
}

.data-room-text {
    font-weight: 800;
    font-style: normal;
}

.accredited-investors-text {
    font-weight: 500;
    font-style: italic;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
    animation: slideInLeft 1s ease-out 0.6s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: slideInRight 1s ease-out 0.9s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    color: #081B50;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    text-align: center;
    justify-content: center;
    backdrop-filter: blur(0);
    animation: bounceIn 1s ease-out 1.2s both;
}

#viewDocsBtn {
    color: #081B50 !important; /* Fuerza el color negro */
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5);
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

/* Contact section */
.contact-item {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: center;
    transition: none;
    position: static;
    overflow: visible;
}

.contact-item .profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #3a5c9a;
    margin: 0 auto 15px;
    display: block;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover .profile-photo {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 27, 80, 0.5);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p, .footer-section a {
    opacity: 0.8;
    text-decoration: none;
    line-height: 1.6;
    color: white;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #0d2159;
    margin: auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 24px;
}

.modal-content p {
    color: white;
    font-size: 18px;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-buttons .btn {
    padding: 12px 25px;
    font-size: 15px;
    box-shadow: none;
}

.modal-buttons .btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-buttons .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: none;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(8, 27, 80, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 140px 0 60px;
    }

    .btn {
        padding: 16px 30px;
        font-size: 15px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .contact-item .profile-photo {
        width: 100px;
        height: 100px;
    }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #081B50;
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1500;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.6);
}


/* WhatsApp button */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1500;
    transition: all 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 36px;
    height: 36px;
}

.whatsapp-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: rgba(8, 27, 80, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.whatsapp-popup h4 {
    color: #85FFA0;
    margin-bottom: 15px;
    font-size: 18px;
}

.whatsapp-popup input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.whatsapp-popup input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.whatsapp-popup input:focus {
    outline: none;
    border-color: #25D366;
}

.whatsapp-btn {
    background: #25D366 !important;
    width: 100%;
    padding: 12px !important;
    font-size: 14px !important;
}

.whatsapp-note {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 10px;
    text-align: center;
}

.whatsapp-fab.active .whatsapp-popup {
    display: block;
}

/* ============ FORMULARIO ADAPTADO AL BTN-GROUP ============ */
.form-registro {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(13, 33, 89, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.form-registro h3 {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-registro input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-registro input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-registro input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-registro .btn {
    width: 100%;
    padding: 18px;
    font-size: 17px;
    font-weight: 700;
    margin-top: 10px;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    color: #081B50;
    border: none;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.form-registro .btn:hover {
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

/* Efecto de etiqueta flotante (opcional) */
.form-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #0d2159;
    padding: 0 8px;
    font-size: 13px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.form-group input:not(:placeholder-shown) + label {
    opacity: 1;
    transform: translateY(0);
}

/* Validación */
.form-group.error {
    position: relative;
}

.form-group.error input {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.form-group.error::after {
    content: '✖ Campo requerido';
    color: #ff6b6b;
    font-size: 12px;
    position: absolute;
    bottom: -18px;
    left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .form-registro {
        padding: 30px 20px;
    }
    
    .form-registro input {
        padding: 14px 16px;
    }
}