/*
Theme Name: TopEstate Corporate
Author: TopEstate
Description: Corporate premium WordPress theme for TopEstate. Bilingual ES/EN, responsive navigation, investment areas carousel and contact form.
Version: 1.1.0
Text Domain: topestate
*/
:root {
    --te-navy: #071b30;
    --te-navy-soft: #0d2944;
    --te-gold: #c3a04a;
    --te-gold-light: #dfc77d;
    --te-turquoise: #55c8c3;
    --te-white: #fff;
    --te-text: #173149;
    --te-muted: #607487;
    --te-bg: #f4f6f6;
    --te-border: rgba(7, 27, 48, .14);
    --te-radius: 14px;
    --te-header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--te-header-height) + 18px); }
body { margin: 0; padding-top: var(--te-header-height); color: var(--te-text); background: #fff; font-family: Inter, "Aptos", "Segoe UI", sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--te-turquoise); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); background: #fff; color: var(--te-navy); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

/* Fixed brand navigation */
.site-header { position: fixed; z-index: 1000; inset: 0 0 auto; height: var(--te-header-height); background: rgba(5, 25, 44, .97); border-bottom: 1px solid rgba(223, 199, 125, .2); box-shadow: 0 8px 28px rgba(3, 17, 30, .13); }
.nav-wrap { position: relative; display: flex; align-items: center; gap: 28px; width: min(1240px, 100%); height: 100%; margin: auto; padding: 0 24px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 13px; color: var(--te-gold-light); }
.brand img { display: block; width: 46px; height: 46px; object-fit: contain; }
.brand-wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 25px; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-left: auto; }
.main-nav a { padding: 10px 12px; border-radius: 5px; color: #f5f7f8; font-size: 13px; font-weight: 600; transition: color .18s ease, background-color .18s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--te-gold-light); background: rgba(255, 255, 255, .06); }
.lang-switch { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .23); color: #aebdca; font-size: 12px; }
.lang-switch a { padding: 5px 2px; }
.lang-switch a.active { color: var(--te-gold-light); font-weight: 800; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid rgba(255,255,255,.26); border-radius: 6px; background: transparent; cursor: pointer; }
.menu-toggle-line { display: block; height: 2px; margin: 5px 0; background: #fff; }

/* Editorial hero */
.hero { position: relative; min-height: 475px; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 76% 28%, rgba(89, 191, 190, .25), transparent 29%), linear-gradient(112deg, #0b2943 0%, #123a56 48%, #143c52 100%); }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(5, 24, 42, .27), transparent 68%), radial-gradient(ellipse at 65% 100%, rgba(195, 160, 74, .2), transparent 42%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 36px; width: min(1210px, 100%); min-height: 475px; margin: auto; padding: 54px 24px 62px; }
.hero-copy { max-width: 640px; }
.eyebrow, .section-kicker { color: var(--te-gold-light); font-size: 11px; font-weight: 800; letter-spacing: .19em; line-height: 1.4; text-transform: uppercase; }
.hero h1 { max-width: 670px; margin: 14px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 5.2vw, 68px); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 span { color: var(--te-gold-light); }
.hero-copy p { max-width: 580px; margin: 0 0 27px; color: #e1e9ed; font-size: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 12px 19px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 750; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.btn-primary { color: var(--te-navy); background: linear-gradient(105deg, #d9bd69, #ead791); }
.btn-primary:hover { background: #f0dfa0; transform: translateY(-1px); }
.hero-scroll { position: absolute; z-index: 2; bottom: 17px; left: max(24px, calc((100% - 1162px) / 2)); display: inline-flex; align-items: center; gap: 10px; color: #d8e2e7; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.hero-scroll span { color: var(--te-gold-light); font-size: 17px; }
.hero-art { position: relative; align-self: stretch; min-height: 330px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; background: linear-gradient(180deg, rgba(144, 190, 190, .13), rgba(5, 25, 44, .18)), linear-gradient(165deg, transparent 0 43%, rgba(8, 31, 49, .75) 44% 100%); }
.hero-art::before { position: absolute; right: -8%; bottom: -22%; width: 86%; height: 64%; border: 1px solid rgba(223, 199, 125, .42); border-radius: 50% 50% 0 0; content: ""; transform: rotate(-13deg); }
.hero-art::after { position: absolute; inset: 0; content: ""; background: repeating-linear-gradient(90deg, transparent 0 11%, rgba(255,255,255,.025) 11.2% 11.4%), linear-gradient(90deg, transparent 43%, rgba(5,25,44,.55)); }
.hero-art-sun { position: absolute; top: 17%; right: 25%; width: 92px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(236, 209, 139, .9), rgba(219, 164, 92, .25) 62%, transparent 72%); }
.hero-art-horizon { position: absolute; right: 0; bottom: 29%; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(223,199,125,.85), transparent); }
.hero-art-tower { position: absolute; z-index: 1; bottom: 25%; width: 13%; border: 1px solid rgba(223,199,125,.26); background: linear-gradient(90deg, rgba(6,26,44,.9), rgba(25,69,88,.65)); box-shadow: inset 8px 0 0 rgba(255,255,255,.03); }
.hero-art-tower::after { position: absolute; inset: 12px 7px; content: ""; background: repeating-linear-gradient(180deg, rgba(223,199,125,.24) 0 1px, transparent 1px 18px); }
.hero-art-tower-one { right: 29%; height: 45%; }
.hero-art-tower-two { right: 15%; height: 65%; width: 17%; }
.hero-art-tower-three { right: 2%; height: 37%; width: 10%; }
.hero-art-tower-four { right: 43%; height: 31%; width: 12%; }
.hero-art-caption { position: absolute; z-index: 2; bottom: 16px; left: 17px; color: rgba(255,255,255,.8); font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-style: italic; }

/* Investment areas carousel */
.section { padding: 76px 24px; }
.container { width: min(1190px, 100%); margin: auto; }
.opportunities-section { background: #fff; }
.section-heading { margin-bottom: 25px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-kicker { color: #9a7b2f; }
.section h2, .contact-intro h2 { margin: 9px 0 0; color: var(--te-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 3.6vw, 43px); font-weight: 500; letter-spacing: -.025em; line-height: 1.12; }
.section-heading > p { max-width: 405px; margin: 0 0 3px; color: var(--te-muted); font-size: 14px; }
.carousel-track { display: flex; gap: 16px; overflow-x: auto; padding: 4px 1px 12px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(195,160,74,.6) rgba(7,27,48,.08); }
.service-card { position: relative; display: flex; flex: 0 0 calc((100% - 48px) / 4); flex-direction: column; min-height: 300px; overflow: hidden; scroll-snap-align: start; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; color: #fff; background: var(--te-navy); }
.service-art { position: relative; min-height: 128px; overflow: hidden; background: linear-gradient(150deg, rgba(16,60,78,.1), rgba(4,24,42,.72)), linear-gradient(115deg, #447d82, #b2945f); }
.service-art::before, .service-art::after { position: absolute; content: ""; }
.service-art::before { right: -12%; bottom: -54%; width: 115%; height: 100%; border: 1px solid rgba(229,207,149,.53); border-radius: 50% 50% 0 0; transform: rotate(-10deg); }
.service-art::after { inset: 0; background: linear-gradient(0deg, rgba(6,26,44,.38), transparent 70%), repeating-linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.035) 18.2% 18.5%); }
.service-card--sports .service-art { background: linear-gradient(180deg, rgba(5,27,42,.08), rgba(5,27,42,.68)), repeating-linear-gradient(0deg, #597f6c 0 17px, #49745f 18px 20px); }
.service-card--sports .service-art::before { right: 12%; bottom: -52%; width: 70%; height: 140%; border: 2px solid rgba(224,195,112,.65); }
.service-card--inversion-inmobiliaria .service-art { background: linear-gradient(130deg, #96a7a2, #57757c 45%, #182f43); }
.service-card--inversion-inmobiliaria .service-art::before { right: 7%; bottom: -8%; width: 70%; height: 83%; border: 1px solid rgba(239,220,162,.6); border-radius: 0; background: repeating-linear-gradient(90deg, transparent 0 23%, rgba(245,239,218,.25) 24% 25%); transform: skewY(-8deg); }
.service-card--startups .service-art { background: radial-gradient(circle at 72% 31%, rgba(85,200,195,.68), transparent 29%), linear-gradient(135deg, #244f65, #0a2943 70%); }
.service-card--startups .service-art::before { right: 19%; bottom: -18%; width: 42%; height: 89%; border: 1px solid rgba(223,199,125,.7); border-radius: 44% 44% 2px 2px; transform: rotate(13deg); }
.service-card--commodities .service-art { background: linear-gradient(180deg, rgba(12,37,52,.1), rgba(6,25,39,.74)), linear-gradient(120deg, #bb9760, #45626a 48%, #19384a); }
.service-card--commodities .service-art::before { right: 8%; bottom: 18%; width: 75%; height: 35%; border: 1px solid rgba(238,210,143,.55); border-radius: 50%; box-shadow: 0 13px 0 -5px rgba(6,26,43,.65), 0 26px 0 -10px rgba(238,210,143,.35); }
.service-art-mark { position: absolute; z-index: 1; top: 15px; left: 16px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--te-gold-light); border-radius: 50%; color: var(--te-gold-light); font-family: Georgia, "Times New Roman", serif; font-size: 13px; }
.service-art-line { position: absolute; z-index: 1; right: 16px; bottom: 17px; width: 34px; height: 1px; background: var(--te-turquoise); }
.service-card-content { display: flex; flex: 1; flex-direction: column; padding: 17px 19px 19px; background: linear-gradient(145deg, #0a2843, #061c31); }
.service-num { color: var(--te-turquoise); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.service-card h3 { margin: 6px 0 7px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; line-height: 1.15; }
.service-card p { margin: 0 0 17px; color: #cfdae1; font-size: 12px; line-height: 1.55; }
.card-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; color: var(--te-gold-light); font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.card-link span { transition: transform .18s ease; }
.card-link:hover span { transform: translateX(4px); }
.carousel-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 5px; }
.carousel-note { color: var(--te-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(7,27,48,.25); border-radius: 50%; color: var(--te-navy); background: #fff; cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.carousel-btn:hover:not(:disabled) { border-color: var(--te-navy); color: #fff; background: var(--te-navy); }
.carousel-btn:disabled { opacity: .38; cursor: default; }

/* About and contact */
.about-section { padding-top: 64px; padding-bottom: 64px; background: #f1f4f4; }
.about-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; }
.about-copy { padding: 13px 15px 10px 0; }
.about-copy h2 { max-width: 550px; }
.about-copy > p { max-width: 620px; margin: 16px 0 23px; color: var(--te-muted); font-size: 14px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.principle { display: grid; gap: 5px; align-content: start; color: var(--te-navy); font-size: 10px; font-weight: 650; line-height: 1.35; }
.principle-symbol { color: #aa8a3e; font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1; }
.about-quote { position: relative; display: flex; min-height: 286px; flex-direction: column; justify-content: end; overflow: hidden; padding: 25px; color: #fff; background: radial-gradient(ellipse at 72% 27%, rgba(85,200,195,.5), transparent 24%), linear-gradient(145deg, #316779, #0b2a43 80%); }
.about-quote::before { position: absolute; right: -10%; bottom: -30%; width: 90%; height: 78%; border: 1px solid rgba(223,199,125,.6); border-radius: 50% 50% 0 0; content: ""; transform: rotate(-12deg); }
.about-quote::after { position: absolute; right: 14%; bottom: 0; width: 30%; height: 58%; border-left: 1px solid rgba(223,199,125,.42); border-right: 1px solid rgba(223,199,125,.42); content: ""; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.06) 19px 20px); transform: skewY(-8deg); }
.quote-label, .about-quote blockquote, .quote-rule, .quote-caption { position: relative; z-index: 1; }
.quote-label { color: var(--te-gold-light); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.about-quote blockquote { max-width: 340px; margin: 14px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 3vw, 36px); font-style: italic; line-height: 1.08; }
.quote-rule { width: 38px; height: 2px; margin-bottom: 15px; background: var(--te-gold-light); }
.quote-caption { color: #cfdae1; font-size: 9px; letter-spacing: .16em; }
.contact-section { padding-top: 62px; padding-bottom: 62px; color: #fff; background: var(--te-navy); }
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 6vw, 76px); align-items: start; }
.contact-intro { padding: 13px 0; }
.contact-intro .section-kicker { color: var(--te-gold-light); }
.contact-intro h2 { color: #fff; font-size: clamp(33px, 3.8vw, 45px); }
.contact-intro p { max-width: 360px; margin: 16px 0 23px; color: #c3d0d9; font-size: 14px; }
.contact-assurance { display: inline-flex; align-items: center; gap: 9px; color: var(--te-gold-light); font-size: 11px; letter-spacing: .06em; }
.contact-assurance span { color: var(--te-turquoise); }
.contact-form-wrap { padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: #0c2943; }
.contact-form { display: grid; gap: 13px; }
.contact-form label { display: grid; gap: 6px; color: #e3e9ed; font-size: 11px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid rgba(7,27,48,.15); border-radius: 3px; color: var(--te-text); background: #f8f9f9; font-size: 13px; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #82909b; }
.consent-label { display: flex !important; grid-template-columns: auto 1fr !important; align-items: start; gap: 9px !important; color: #bac9d3 !important; font-size: 10px !important; font-weight: 500 !important; }
.consent-label a { color: var(--te-gold-light); text-decoration: underline; text-underline-offset: 2px; }
.consent-label input { margin: 2px 0 0; accent-color: var(--te-gold); }
.form-submit { width: 100%; border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.notice { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #b6d9bd; border-radius: 4px; color: #173e24; background: #e9f5eb; font-size: 13px; }
.notice.error { border-color: #e9b4b4; color: #722626; background: #fff0f0; }

/* Inner pages and footer */
.page-hero { padding: 74px 24px 52px; color: #fff; background: linear-gradient(120deg, var(--te-navy), #16435b); }
.page-hero .container { width: min(1190px, 100%); }
.page-hero h1 { margin: 10px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; line-height: 1.05; }
.page-hero p { max-width: 700px; margin: 0; color: #d5e0e5; }
.page-content { width: min(920px, 100%); margin: auto; padding: 54px 24px 72px; }
.page-content h2 { color: var(--te-navy); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.site-footer { padding: 30px 24px 20px; color: #bfccd5; background: #041525; }
.footer-grid, .footer-bottom { width: min(1190px, 100%); margin: auto; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 30px; padding-bottom: 23px; }
.site-footer h4 { margin: 0 0 9px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
.site-footer p, .site-footer a { font-size: 11px; }
.site-footer p { margin: 5px 0; }
.site-footer a:hover { color: var(--te-gold-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1100px) {
    .nav-wrap { gap: 16px; padding-right: 18px; padding-left: 18px; }
    .brand-wordmark { font-size: 21px; }
    .main-nav a { padding-right: 8px; padding-left: 8px; font-size: 12px; }
    .service-card { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 840px) {
    :root { --te-header-height: 68px; }
    .nav-wrap { gap: 12px; padding: 0 18px; }
    .brand img { width: 42px; height: 42px; }
    .brand-wordmark { font-size: 20px; }
    .menu-toggle { display: block; order: 3; margin-left: 2px; }
    .lang-switch { order: 2; margin-left: auto; padding-left: 12px; }
    .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 9px 18px 16px; border-top: 1px solid rgba(255,255,255,.1); background: #061c31; box-shadow: 0 14px 22px rgba(3,17,30,.2); }
    .main-nav.is-open { display: flex; flex-direction: column; }
    .main-nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
    .hero-inner { grid-template-columns: 1fr .72fr; gap: 20px; min-height: 440px; padding-top: 44px; }
    .hero { min-height: 440px; }
    .hero-art { min-height: 300px; }
    .service-card { flex-basis: calc((100% - 16px) / 2); }
    .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .about-quote { min-height: 230px; }
    .contact-intro { padding-bottom: 0; }
}
@media (max-width: 600px) {
    .section { padding: 54px 18px; }
    .nav-wrap { padding: 0 14px; }
    .brand { gap: 8px; }
    .brand img { width: 38px; height: 38px; }
    .brand-wordmark { font-size: 17px; letter-spacing: .1em; }
    .hero, .hero-inner { min-height: 0; }
    .hero-inner { display: block; padding: 51px 20px 62px; }
    .hero h1 { font-size: clamp(39px, 11vw, 54px); }
    .hero-copy p { font-size: 14px; }
    .hero-art { display: none; }
    .hero-scroll { left: 20px; }
    .section-heading-row { display: block; }
    .section-heading > p { margin-top: 13px; }
    .service-card { flex-basis: min(84vw, 330px); min-height: 290px; }
    .service-art { min-height: 120px; }
    .carousel-track { gap: 12px; }
    .carousel-note { max-width: 220px; font-size: 9px; }
    .principles { grid-template-columns: 1fr 1fr; row-gap: 18px; }
    .about-quote { min-height: 220px; padding: 20px; }
    .contact-form-wrap { padding: 17px; }
    .form-row { grid-template-columns: 1fr; gap: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html, .carousel-track { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
