/* Custom Stylesheet for APF - Asesores Profesionales en Finanzas */

:root {
    --primary: #0a1c3d;      /* Deep Navy Blue */
    --primary-light: #162a52;
    --secondary: #1d4ed8;    /* Royal Blue */
    --accent: #b8935c;       /* Corporate Gold */
    --accent-light: #fbf9f5;  /* Soft Warm Off-White */
    --accent-hover: #c5a880;  /* Bright Gold */
    --text-main: #334155;    /* Slate 700 */
    --text-muted: #64748b;   /* Slate 500 */
    --text-dark: #0f172a;    /* Slate 900 */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;     /* Slate 50 */
    --border-color: #e2e8f0; /* Slate 200 */
    --success: #10b981;      /* Emerald 500 */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Premium, rich corporate shadows */
    --shadow-sm: 0 2px 8px rgba(10, 28, 61, 0.02);
    --shadow-md: 0 8px 24px rgba(10, 28, 61, 0.04);
    --shadow-lg: 0 16px 36px rgba(10, 28, 61, 0.06);
    --shadow-premium: 0 30px 60px rgba(10, 28, 61, 0.08), 0 10px 20px rgba(10, 28, 61, 0.02);
    
    /* Dotted separator blue color matching user request */
    --blue-circle-color: #113c87;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
}

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

/* Container Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5.5rem auto;
}

.section-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Buttons & Actions */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(184, 147, 92, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled {
    height: 150px;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 165px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 125px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--text-dark);
}

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

.nav-cta {
    display: block;
}

/* Burger Menu Mobile */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 21rem;
    padding-bottom: 10rem;
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(184, 147, 92, 0.05) 0%, rgba(255,255,255,0) 60%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.hero-experience {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    border: 1px solid rgba(184, 147, 92, 0.15);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.hero-experience svg {
    width: 20px;
    height: 20px;
}

.hero-title {
    font-size: 3.75rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.75rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-shape-container {
    width: 100%;
    max-width: 420px;
    height: 420px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(10, 28, 61, 0.05) 0%, rgba(184, 147, 92, 0.05) 100%);
    animation: morph 15s ease-in-out infinite;
    z-index: 1;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
}

.hero-shape-2 {
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, rgba(10, 28, 61, 0.02) 0%, rgba(184, 147, 92, 0.02) 100%);
    animation-duration: 10s;
    animation-direction: reverse;
}

.hero-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    border: 2px solid var(--accent-light);
    position: relative;
    z-index: 2;
    width: 90%;
    transform: rotate(-2deg);
    transition: var(--transition);
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: var(--accent);
}

.hero-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.hero-card-text {
    font-size: 0.98rem;
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .hero-shape {
        animation: none;
    }
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Section: Nosotros */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5.5rem;
    align-items: start;
}

.nosotros-text p {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 1.75rem;
    line-height: 1.75;
}

.nosotros-text p:last-child {
    margin-bottom: 0;
}

/* GBM Partnership Card */
.partnership-card {
    background-color: var(--bg-light);
    border-radius: 18px;
    padding: 2.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.partnership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--accent);
}

.partnership-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.partnership-badge {
    background-color: var(--accent-light);
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(184, 147, 92, 0.15);
    text-transform: uppercase;
}

.partnership-title {
    font-size: 1.35rem;
    color: var(--text-dark);
}

.partnership-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.65;
}

.gbm-inline-logo {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gbm-partner-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Section: Objetivos (Replicating User Image Design) */
.objetivos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.objetivo-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.objetivo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.objetivo-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: var(--blue-circle-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #ffffff;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(17, 60, 135, 0.15);
}

.objetivo-card:hover .objetivo-icon-circle {
    transform: scale(1.08);
    background-color: var(--primary);
    box-shadow: 0 6px 15px rgba(10, 28, 61, 0.25);
}

.objetivo-icon-circle svg {
    width: 44px;
    height: 44px;
}

.objetivo-title {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    flex-grow: 1;
    margin-bottom: 0.5rem;
}

.dotted-separator {
    color: var(--blue-circle-color);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-top: 1.25rem;
    line-height: 0.8;
    opacity: 0.8;
}

.objetivo-card:hover .dotted-separator {
    color: var(--accent);
    opacity: 1;
}

.objetivo-card.highlighted {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-md);
}


/* Section: Servicios (Áreas de Especialidad) */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.servicio-card {
    background-color: var(--bg-white);
    border-radius: 18px;
    padding: 3.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(184, 147, 92, 0.015) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent);
}

.servicio-card:hover::before {
    opacity: 1;
}

.servicio-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: transparent;
    transition: var(--transition);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.servicio-card:hover::after {
    background-color: var(--accent);
}

.servicio-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background-color: var(--bg-light);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.25rem;
    transition: var(--transition);
    overflow: hidden;
    z-index: 2;
}

.servicio-icon-bg-glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background-color: rgba(184, 147, 92, 0.08);
    filter: blur(10px);
    transition: var(--transition);
    z-index: 1;
}

.servicio-premium-icon {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    transition: var(--transition);
}

.servicio-icon-primary {
    stroke: var(--primary);
    transition: var(--transition);
}

.servicio-icon-accent {
    stroke: var(--accent);
    transition: var(--transition);
}

.servicio-card:hover .servicio-icon-container {
    border-color: var(--accent-hover);
    box-shadow: 0 10px 25px rgba(184, 147, 92, 0.15);
    background-color: var(--bg-white);
}

.servicio-card:hover .servicio-icon-bg-glow {
    background-color: rgba(184, 147, 92, 0.2);
    transform: scale(1.4);
}

.servicio-card:hover .servicio-icon-primary {
    stroke: var(--secondary);
}

.servicio-card:hover .servicio-icon-accent {
    stroke: var(--accent-hover);
}

.servicio-title {
    font-size: 1.65rem;
    margin-bottom: 1.15rem;
    color: var(--primary);
}

.servicio-desc {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.65;
    flex-grow: 1;
}

.servicio-card.afa-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-color: var(--border-color);
}

.servicio-card.afa-card::after {
    background-color: var(--accent);
}

.afa-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.afa-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
    background-color: var(--accent-light);
    border: 1px solid rgba(184, 147, 92, 0.15);
    padding: 0.3rem 0.85rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.afa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 1.5rem;
    font-size: 0.98rem;
}

.afa-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Section: Contacto */
.contacto-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5.5rem;
    align-items: start;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
}

.contacto-item {
    display: flex;
    gap: 1.5rem;
}

.contacto-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}

.contacto-item:hover .contacto-icon {
    background-color: var(--accent-light);
    border-color: var(--accent);
    transform: scale(1.05);
}

.contacto-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.contacto-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

.contacto-map-wrapper {
    margin-top: 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 320px;
}

.contacto-map {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form */
.contacto-form-card {
    background-color: var(--bg-white);
    border-radius: 18px;
    padding: 3.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.form-title {
    font-size: 1.85rem;
    margin-bottom: 2.25rem;
    position: relative;
    color: var(--primary);
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--accent);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.form-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.15rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(184, 147, 92, 0.1);
}

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

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Success Alert */
.form-alert {
    display: none;
    padding: 1.15rem;
    border-radius: 6px;
    margin-bottom: 1.75rem;
    font-size: 0.98rem;
    font-weight: 500;
    text-align: center;
}

.form-alert.success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-alert.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer - Light Minimal Theme */
.footer {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding: 6rem 0 3.5rem 0;
    font-size: 0.98rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
    margin-bottom: 4.5rem;
}

.footer-logo-desc {
    max-width: 450px;
}

.footer-logo {
    margin-bottom: 1.75rem;
}

.footer-desc {
    line-height: 1.75;
    color: var(--text-muted);
}

.footer-links-title {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-menu {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.footer-link {
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-bottom {
    padding-top: 2.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-title {
        font-size: 3.25rem;
    }
    .hero-graphic {
        display: none;
    }
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .objetivos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: 165px;
    }
    .burger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 165px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 165px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: var(--transition);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-cta {
        display: none;
    }
    .hero {
        padding-top: 18rem;
        padding-bottom: 6rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section {
        padding: 5.5rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .objetivos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contacto-form-card {
        padding: 2.5rem 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.75rem;
        text-align: center;
    }
}

/* Active hamburger burger lines */
.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
