/* ==========================================================================
   CSS Principal - Zekford Investments S.R.L.
   Aesthetically designed with premium blue and gold accents
   ========================================================================== */

/* --- Custom Variables & Theme --- */
:root {
    --primary: #0a1931;       /* Deep Navy Blue */
    --primary-light: #15305b; /* Lighter Navy */
    --primary-dark: #050c18;  /* Midnight Navy */
    --accent: #c5a880;        /* Brushed Gold */
    --accent-hover: #b4956c;  /* Warm Gold Hover */
    --accent-light: #f5f0e6;  /* Soft Warm White */
    --bg-dark: #020617;        /* Very Dark Slate */
    --bg-light: #f8fafc;       /* Clean Light Gray */
    --text-dark: #0f172a;      /* Near Black */
    --text-muted: #475569;     /* Cool Gray */
    --text-light: #f1f5f9;     /* Soft White */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --container-width: 1200px;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Common Components --- */
.section-tag {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--accent);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.btn-block {
    display: width;
    width: 100%;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    padding: 1.5rem 0;
}

.main-header.scrolled {
    background-color: rgba(10, 25, 49, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-bold {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-light);
}

.logo-light {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-top: 2px;
}

.main-header.scrolled .logo-bold {
    color: var(--text-light);
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    opacity: 0.85;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 1;
    color: var(--accent);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, var(--primary-dark) 40%, var(--primary) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 680px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-light);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    animation: fadeInUp 1s ease forwards;
}

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

.hero-description {
    font-size: 1.15rem;
    color: rgba(241, 245, 249, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 300;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1.4s ease forwards;
}

.hero-scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll-down a {
    color: var(--accent);
    font-size: 1.25rem;
}

/* --- About Section (Nosotros) --- */
.about-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-container {
    position: relative;
    border-radius: 8px;
    overflow: visible;
}

.about-img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: none;
}

.about-image-overlay {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 8px;
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: 2rem;
    right: -2rem;
    background: rgba(10, 25, 49, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exp-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    text-align: center;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pillar-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.pillar-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.pillar-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Services Section --- */
.services-section {
    padding: 8rem 0;
    background-color: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.02);
}

.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 168, 128, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 168, 128, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card:hover .card-icon {
    background-color: var(--accent);
}

.service-card:hover .card-icon i {
    color: var(--primary-dark);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card:hover .card-link {
    color: var(--primary);
}

/* --- Stats & Trayectoria Section --- */
.stats-section {
    position: relative;
    padding: 8rem 0;
    color: var(--text-light);
    background-color: var(--primary);
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 80%, rgba(197, 168, 128, 0.1) 0%, transparent 50%),
                linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
    margin-bottom: 6rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(241, 245, 249, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trayectoria-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 8px;
}

.trayectoria-text h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.trayectoria-text p {
    font-size: 1.1rem;
    color: rgba(241, 245, 249, 0.85);
    font-weight: 300;
    line-height: 1.8;
}

/* --- Contact Section --- */
.contact-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.detail-item i {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background-color: rgba(10, 25, 49, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
}

.detail-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.detail-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form-container {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.form-feedback {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-feedback.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-feedback.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(241, 245, 249, 0.7);
    padding: 6rem 0 3rem 0;
    border-top: 1px solid rgba(197, 168, 128, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-legal p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Keyframes & Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .about-img {
        height: 400px;
    }
    .experience-badge {
        right: 0;
        bottom: -1rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary);
        transition: var(--transition);
        padding: 3rem 2rem;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
