/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1f7cec;
    --primary-hover: #3993ff;
    --base: #fff;
    --featured: #0a284b;
    --mono-1: #0d3c74;
    --mono-2: #64748b;
    --mono-3: #e2e8f0;
    --mono-4: #f8fafc;
    --contrast-dark: #000;
    --font-heading: 'Jost', sans-serif;
    --font-body: 'Cardo', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--featured);
    line-height: 1.6;
    background: var(--base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    background: var(--featured);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--base);
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--base);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--base);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 666px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://adargacapital.com/wp-content/uploads/2024/10/despacho-madera-1.jpg');
    background-size: cover;
    background-position: 37% 28%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--featured) 0%, rgba(10, 40, 75, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--base);
    font-family: var(--font-heading);
    font-size: clamp(15px, 1rem + 0.86vw, 24px);
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 20px;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(2.75rem, 2.75rem + 4.2vw, 5.3rem);
    color: var(--base);
    font-weight: 400;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Carousel Section */
.carousel-section {
    padding: clamp(24px, 5vw, 48px) 0;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 60px;
}

.slide-source {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--base);
    background: var(--primary);
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 0;
}

.slide-content h3 {
    margin: 0;
}

.slide-content h3 a {
    color: var(--base);
    font-family: var(--font-heading);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s;
}

.slide-content h3 a:hover {
    opacity: 0.85;
}

/* Arrow buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--base);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    right: 56px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.dot.active {
    background: var(--base);
    border-color: var(--base);
}

/* Value Section */
.value-section {
    padding: clamp(30px, 6vw, 60px) clamp(30px, 6vw, 60px);
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--featured);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--mono-2);
}

/* Strategy Section */
.strategy-section {
    background: var(--mono-4);
    padding: clamp(40px, 8vw, 80px) clamp(30px, 6vw, 60px);
}

.strategy-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--featured);
}

.strategy-title::before {
    content: '* ';
    color: var(--primary);
}

.strategy-subtitle {
    text-align: center;
    color: var(--mono-2);
    margin-bottom: clamp(30px, 5vw, 50px);
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.strategy-card h3 {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.1vw, 20px);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--featured);
}

.strategy-card h3::before {
    content: '* ';
    color: var(--primary);
}

.strategy-card p {
    font-size: 0.95rem;
    color: var(--mono-2);
    line-height: 1.7;
}

/* About Section */
.about-section {
    padding: clamp(40px, 8vw, 80px) clamp(30px, 6vw, 60px);
}

.about-section p {
    max-width: 900px;
    margin: 0 auto 24px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--mono-1);
}

.about-section p:last-child {
    margin-bottom: 0;
    font-weight: 700;
}

/* Quote Section */
.quote-section {
    background: var(--featured);
    color: var(--base);
    padding: clamp(50px, 8vw, 100px) clamp(30px, 8vw, 80px);
}

.quote-section blockquote {
    text-align: center;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 20px;
}

.quote-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.author-name {
    font-size: 1rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--mono-3);
    font-weight: 300;
}

/* Results Section */
.results-section {
    padding: clamp(40px, 8vw, 80px) 24px;
}

.results-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--featured);
}

.results-date {
    text-align: center;
    color: var(--mono-2);
    margin-bottom: clamp(30px, 5vw, 60px);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.result-card {
    background: var(--mono-4);
    padding: clamp(30px, 4vw, 50px) 24px;
    text-align: center;
    border-bottom: 1px solid var(--mono-3);
}

.result-card.dark {
    background: var(--mono-3);
}

.result-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--featured);
}

.result-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.result-value h4 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    color: var(--primary);
}

.result-value span {
    font-size: 1rem;
    color: var(--mono-2);
}

/* Contact Section */
.contact-section {
    padding: clamp(40px, 8vw, 80px) 24px;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
    font-weight: 600;
    color: var(--featured);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--featured);
    font-weight: 500;
}

.required {
    color: #d63637;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: #244E8A;
    background: var(--base);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(31, 124, 236, 0.15);
}

.submit-btn {
    display: inline-block;
    background: var(--featured);
    color: var(--base);
    border: none;
    padding: 12px 28px;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: var(--featured);
    padding: 24px;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Page Header (subpages) */
.page-header {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://adargacapital.com/wp-content/uploads/2024/10/despacho-madera-1.jpg');
    background-size: cover;
    background-position: 37% 28%;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 40, 75, 0.85), rgba(31, 124, 236, 0.7));
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 24px 40px;
}

.page-header-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--base);
    font-weight: 600;
    margin-bottom: 12px;
}

.page-header-content p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* Articles Page */
.articles-section {
    padding: clamp(40px, 8vw, 80px) 24px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.article-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 32px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.article-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0.6;
}

.article-source {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: var(--primary);
    color: var(--base);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.article-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    font-weight: 600;
    color: var(--featured);
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-body p {
    font-size: 0.9rem;
    color: var(--mono-2);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.article-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s;
}

.article-card:hover .article-link {
    color: var(--primary-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--featured);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        backdrop-filter: blur(8px);
    }

    .nav-links.open {
        display: flex;
    }

    .strategy-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 450px;
    }

    .carousel-slide {
        height: 130px;
    }

    .slide-content {
        padding: 0 48px;
    }

    .carousel-dots {
        right: 16px;
        bottom: 8px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 350px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}
