/* ======================================
   NEXUS.consulting - Stylesheet
   Soluciones Integrales para Empresas e Inversores
   ====================================== */

/* ======================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ====================================== */
:root {
    --color-primary: #0A2240; /* Azul Marino */
    --color-background: #F0F2F5; /* Gris Claro */
    --color-accent: #C4A265; /* Dorado Ocre */
    --color-white: #FFFFFF;
    --color-text: #1f2937; /* Gris Oscuro para texto */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-long: all 0.5s ease;
}

/* ======================================
   RESET & BASE STYLES
   ====================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ======================================
   TYPOGRAPHY
   ====================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.section-title {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem; /* 48px */
    }
}

.section-subtitle {
    font-size: 1.125rem; /* 18px */
    max-width: 48rem; /* 768px */
    margin-left: auto;
    margin-right: auto;
    color: #4b5563; /* Gris 600 */
    line-height: 1.7;
}

/* ======================================
   UTILITY CLASSES
   ====================================== */
.bg-primary { 
    background-color: var(--color-primary); 
}

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

.text-accent { 
    color: var(--color-accent); 
}

.border-accent { 
    border-color: var(--color-accent); 
}

.text-white {
    color: var(--color-white);
}

.text-primary {
    color: var(--color-primary);
}

/* ======================================
   NAVIGATION STYLES
   ====================================== */
.nav-link {
    position: relative;
    transition: var(--transition-base);
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ======================================
   HEADER STYLES
   ====================================== */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.logo .accent-dot {
    color: var(--color-accent);
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow-y: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 34, 64, 0.4) 0%,
        rgba(196, 162, 101, 0.1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title-container {
    margin-bottom: 20rem;
}

.hero-main-title {
    font-size: 4.5rem;
    color: var(--color-white);
    font-weight: 700;
    line-height: 1;
    margin: 0;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-accent-dot {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 2.5rem;
    color: var(--color-accent);
    font-weight: 300;
    line-height: 1;
    margin: 0;
    letter-spacing: 0.35em;
    text-transform: lowercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-left: 0.1em; /* Pequeño ajuste para alinear visualmente */
}

@media (min-width: 768px) {
    .hero-main-title {
        font-size: 6rem;
    }
    
    .hero-subtitle {
        font-size: 3rem;
        letter-spacing: 0.4em;
    }
}

@media (max-width: 767px) {
    .hero-title-container {
        margin-bottom: 12rem;
    }
    
    .hero-main-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
        letter-spacing: 0.3em;
    }
}

/* Ajuste específico para pantallas con poca altura (como MacBooks) */
@media (max-height: 800px) {
    .hero-title-container {
        margin-bottom: 10rem;
    }
    
    .hero-content {
        padding: 1rem 1.5rem;
    }
    
    .hero-main-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
}

@media (max-height: 700px) {
    .hero-title-container {
        margin-bottom: 6rem;
    }
    
    .hero-main-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* ======================================
   BUTTONS
   ====================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-long);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 8px 32px rgba(10, 34, 64, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(10, 34, 64, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, rgba(196, 162, 101, 0.8) 100%);
    color: var(--color-white);
    box-shadow: 0 8px 32px rgba(196, 162, 101, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(196, 162, 101, 0.4);
    background: linear-gradient(135deg, rgba(196, 162, 101, 1) 0%, rgba(196, 162, 101, 0.9) 100%);
}

.btn-accent:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(196, 162, 101, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Call-to-action minimalista del hero */
.hero-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.hero-cta-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: var(--transition-base);
}

.hero-cta-text:hover {
    color: var(--color-accent);
}

/* ======================================
   SHIMMER TEXT EFFECT
   ====================================== */
.shimmer-text {
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 15%, var(--color-primary) 50%, rgba(255, 255, 255, 1) 85%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    filter: brightness(1.2) contrast(1.1);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.hero-arrow-link {
    display: block;
    width: 3rem;
    height: 3rem;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.9325 9.00124L5.99316 7.94058L11.9969 13.9443L18.0069 7.93433L19.0676 8.99499L11.9969 16.0656L4.9325 9.00124Z" fill="%23FFFFFF" fill-opacity="0.9"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: bounceArrow 2s infinite;
    transition: var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    cursor: pointer;
}

.hero-arrow-link:hover {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.9325 9.00124L5.99316 7.94058L11.9969 13.9443L18.0069 7.93433L19.0676 8.99499L11.9969 16.0656L4.9325 9.00124Z" fill="%23C4A265" fill-opacity="0.9"/></svg>');
    animation-duration: 1s;
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    40% {
        transform: translateY(-8px);
        opacity: 0.8;
    }
    60% {
        transform: translateY(-4px);
        opacity: 0.9;
    }
}

/* ======================================
   CARDS & COMPONENTS
   ====================================== */
.service-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-background);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--transition-long);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-0.5rem);
}

.service-card a {
    margin-top: auto;
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    background-color: var(--color-primary);
    color: var(--color-accent);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(196, 162, 101, 0.3);
    transition: var(--transition-long);
}

.value-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-accent);
}

.value-card h5 {
    font-weight: 700;
    color: var(--color-white);
    font-size: 1.125rem;
    transition: var(--transition-base);
}

.value-card:hover h5 {
    color: var(--color-accent);
}

/* ======================================
   GRID LAYOUTS
   ====================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ======================================
   SECTIONS
   ====================================== */
.section {
    padding: var(--section-padding);
}

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

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

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

/* ======================================
   FORMS
   ====================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: #374151;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: var(--color-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--color-accent);
    border-color: var(--color-accent);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ======================================
   SCROLL-DRIVEN ANIMATIONS
   ====================================== */
.animate-fade-in {
    animation: fade-in-up ease-out both;
    animation-timeline: view();
    animation-range: entry 20% entry 80%;
}

.animate-fade-in-delayed {
    animation: fade-in-up ease-out both;
    animation-timeline: view();
    animation-range: entry 30% entry 90%;
}

.animate-slide-in-left {
    animation: slide-in-left ease-out both;
    animation-timeline: view();
    animation-range: entry 20% entry 80%;
}

.animate-slide-in-right {
    animation: slide-in-right ease-out both;
    animation-timeline: view();
    animation-range: entry 20% entry 80%;
}

.animate-scale-in {
    animation: scale-in ease-out both;
    animation-timeline: view();
    animation-range: entry 10% entry 70%;
}

.animate-image-reveal {
    animation: image-reveal ease-out both;
    animation-timeline: view();
    animation-range: entry 25% entry 75%;
}

.animate-card-float {
    animation: card-float ease-out both;
    animation-timeline: view();
    animation-range: entry 15% entry 85%;
}

/* ======================================
   KEYFRAME ANIMATIONS
   ====================================== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-3rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(3rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes image-reveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(2rem);
        filter: blur(2px) brightness(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0) brightness(1);
    }
}

@keyframes card-float {
    from {
        opacity: 0;
        transform: translateY(2rem) scale(0.98);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }
}

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */
@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Botones optimizados para móvil */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
        border-radius: 0.75rem;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-accent {
        background: linear-gradient(135deg, var(--color-accent) 0%, rgba(196, 162, 101, 0.9) 100%);
        box-shadow: 0 6px 25px rgba(196, 162, 101, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .btn-accent:hover,
    .btn-accent:focus {
        transform: translateY(-1px);
        box-shadow: 0 8px 30px rgba(196, 162, 101, 0.35);
    }
    
    .btn-accent:active {
        transform: scale(0.98);
        box-shadow: 0 4px 15px rgba(196, 162, 101, 0.3);
    }
    
    /* Call-to-action minimalista para móvil */
    .hero-cta-container {
        gap: 1.2rem;
    }
    
    .hero-cta-text {
        font-size: 1.1rem;
    }
    
    .hero-arrow-link {
        width: 2.2rem;
        height: 2.2rem;
        animation: bounceArrowMobile 2.5s infinite;
    }
    
    @keyframes bounceArrowMobile {
        0%, 25%, 50%, 75%, 100% {
            transform: translateY(0);
            opacity: 1;
        }
        12.5% {
            transform: translateY(-6px);
            opacity: 0.8;
        }
        37.5% {
            transform: translateY(-3px);
            opacity: 0.9;
        }
        62.5% {
            transform: translateY(-6px);
            opacity: 0.8;
        }
        87.5% {
            transform: translateY(-3px);
            opacity: 0.9;
        }
    }
}

/* Mostrar solo en móvil */
.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .show-mobile {
        display: none;
    }
}

/* ======================================
   ACCESSIBILITY
   ====================================== */
/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-fade-in-delayed,
    .animate-slide-in-left,
    .animate-slide-in-right,
    .animate-scale-in,
    .animate-image-reveal,
    .animate-card-float {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ======================================
   LANGUAGE SELECTOR STYLES
   ====================================== */
#language-button {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-base);
    border-radius: 6px;
    position: relative;
}

#language-button:hover {
    background-color: rgba(196, 162, 101, 0.1);
}

#language-button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

#language-dropdown {
    min-width: 200px;
    animation: fadeInDropdown 0.2s ease-out;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: left;
}

.language-option:hover {
    background-color: var(--color-background);
    color: var(--color-primary);
}

.language-option:focus {
    outline: none;
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* Mobile language selector styles */
.mobile-language-option {
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.mobile-language-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-language-option:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Mobile styles for language selector */
@media (max-width: 768px) {
    #language-dropdown {
        position: fixed;
        top: 70px;
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .language-option {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    #language-dropdown {
        animation: none;
    }
    
    #language-chevron {
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #language-button {
        border: 2px solid currentColor;
    }
    
    #language-dropdown {
        border: 2px solid currentColor;
    }
}

/* ======================================
   PRINT STYLES
   ====================================== */
@media print {
    .no-print {
        display: none;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
} 