/* ============================
   CRISÁLIDA MOVEMENT — Main Stylesheet
   Brand: #7ca6bf · #545454 · #e6d9cf · #fff9f3
   Premium Design with Animations
   ============================ */

/* ---------- Custom Fonts ---------- */
@font-face {
    font-family: 'Reckless Neue';
    src: url('/static/fonts/RecklessNeue-Italic.woff2') format('woff2'),
         url('/static/fonts/RecklessNeue-Italic.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Frunchy Sage';
    src: url('/static/fonts/frunchy-sage.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-primary: #7ca6bf;
    --color-primary-dark: #5a8ba8;
    --color-primary-light: #a3c4d6;
    --color-primary-ultra-light: rgba(124, 166, 191, 0.08);
    --color-text: #545454;
    --color-text-light: #7a7a7a;
    --color-beige: #e6d9cf;
    --color-cream: #fff9f3;
    --color-white: #ffffff;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif;

    --nav-height: 80px;
    --container-max: 1140px;
    --section-padding: 120px 0;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 2px 8px rgba(84, 84, 84, 0.06);
    --shadow-md: 0 8px 30px rgba(84, 84, 84, 0.08);
    --shadow-lg: 0 20px 60px rgba(84, 84, 84, 0.1);
    --shadow-glow: 0 8px 40px rgba(124, 166, 191, 0.25);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* <address> is used for the real contact block; drop the UA italics. */
address {
    font-style: normal;
}

/* Text for screen readers and crawlers that the visual design does not show
   (e.g. what the brand-name h1 actually means). Removed from the layout
   without display:none, which would hide it from assistive tech too. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Cursor Glow ---------- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 166, 191, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.reveal-up {
    transform: translateY(40px);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.reveal--delay-1 { --reveal-delay: 0.15s; }
.reveal--delay-2 { --reveal-delay: 0.3s; }
.reveal--delay-3 { --reveal-delay: 0.45s; }

/* Hero reveals play immediately (no intersection observer needed) */
.hero .reveal {
    animation: heroReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--reveal-delay, 0s);
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 16px 44px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    letter-spacing: 3px;
}

.btn-primary:hover::after {
    left: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    height: 64px;
    background-color: rgba(255, 249, 243, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 120px;
    transition: all var(--transition);
}

.navbar.scrolled .nav-logo img {
    height: 80px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--color-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: var(--color-primary-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.navbar.scrolled .nav-links a::after {
    background-color: var(--color-primary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary-light);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: var(--color-primary);
}

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

/* "Mi cuenta" — call-to-action pill (navigates to the user zone) */
.nav-links a.nav-account {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 7px 18px;
}

.nav-links a.nav-account::after {
    display: none;
}

.nav-links a.nav-account:hover {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    border-color: var(--color-white);
}

.navbar.scrolled .nav-links a.nav-account {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.navbar.scrolled .nav-links a.nav-account:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* "Mi cuenta" dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    /* No vertical gap from the trigger, so the menu only appears while the
       cursor is over "Mi cuenta" or the menu itself (no dead zone). */
    top: 100%;
    right: 0;
    min-width: 190px;
    list-style: none;
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition),
        visibility var(--transition);
    z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    width: 100%;
}

.nav-links .nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: none;
    color: var(--color-text);
    white-space: nowrap;
}

.nav-links .nav-dropdown-menu a::after {
    display: none;
}

.nav-links .nav-dropdown-menu a:hover {
    background-color: var(--color-cream);
    color: var(--color-primary);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--color-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.navbar.scrolled .nav-toggle span {
    background-color: var(--color-text);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Slideshow background */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform;
}

/* Show landscape photos on wide screens, portrait crops on narrow screens. */
.hero-slideshow--vert { display: none; }
@media (max-width: 768px) {
    .hero-slideshow--horiz { display: none; }
    .hero-slideshow--vert { display: block; }
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    /* Bias the crop slightly above center so subjects' heads/upper bodies stay
       in frame on wide screens; the unavoidable crop falls on the floor/legs. */
    background-position: center 35%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}

.hero-slide--active {
    opacity: 1;
    animation: heroZoom 6s ease-in-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1); }
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(84, 84, 84, 0.45) 0%,
        rgba(84, 84, 84, 0.55) 50%,
        rgba(84, 84, 84, 0.65) 100%
    );
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
}

.hero-overline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- Brand Typography (matches logo) ---------- */
.brand-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.brand-title-name {
    font-family: 'Frunchy Sage', 'Reckless Neue', var(--font-heading);
    font-weight: 400;
    font-style: normal;
    line-height: 1.05;
}

.brand-title-sub {
    font-family: 'Frunchy Sage', var(--font-body);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.05em;
    padding-left: 0;
    line-height: 1;
}

.hero h1.brand-title .brand-title-name {
    font-size: clamp(3rem, 9vw, 6rem);
    color: var(--color-white);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.hero h1.brand-title .brand-title-sub {
    margin-top: 8px;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--color-primary-light);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.hero-divider {
    width: 60px;
    height: 1.5px;
    background-color: var(--color-primary-light);
    margin: 28px auto;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 300;
    color: var(--color-cream);
    line-height: 1.9;
    margin-bottom: 48px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease 1.5s forwards;
    opacity: 0;
    z-index: 2;
}

.hero-scroll-indicator span {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-cream);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-cream), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Brand Pillars ---------- */
.pillars {
    background-color: var(--color-white);
    padding: 100px 0;
    position: relative;
    text-align: center;
}

.pillars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-beige), transparent);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.pillar-card {
    text-align: center;
    padding: 48px 32px;
    border-radius: 2px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

.pillar-card:hover {
    background-color: var(--color-cream);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(124, 166, 191, 0.15);
}

/* Bottom line on hover */
.pillar-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover::after {
    width: 80%;
}

/* Top glow on hover */
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--color-primary);
    opacity: 0;
    transition: all 0.5s ease;
    filter: blur(0px);
}

.pillar-card:hover::before {
    opacity: 1;
    width: 120px;
    filter: blur(4px);
}

/* Icon with floating animation */
.pillar-icon {
    color: var(--color-primary);
    margin-bottom: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconFloat 4s ease-in-out infinite;
}

.pillar-card:nth-child(2) .pillar-icon {
    animation-delay: -1s;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(124, 166, 191, 0.4));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.pillar-card h3 {
    font-size: 1.125rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 600;
}

.pillar-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.pillar-card em {
    color: var(--color-text);
    font-style: italic;
}

/* Pillars intro text */
.pillars-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.pillars-lead {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 12px;
}

.pillars-lead em {
    color: var(--color-primary);
    font-style: italic;
    position: relative;
}

.pillars-lead em::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillars-lead:hover em::after {
    transform: scaleX(1);
    transform-origin: left;
}

.pillars-intro p:not(.pillars-lead) {
    font-size: 1rem;
    color: var(--color-text-light);
}

/* Two-column layout */
.pillars .pillars-grid--two {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pillars-logo {
    text-align: center;
    margin: 48px auto 0;
    display: flex;
    justify-content: center;
}

.pillars-logo img {
    height: 250px;
    width: auto;
    animation: logoPulse 5s ease-in-out infinite;
    transition: all 0.5s ease;
}

.pillars-logo img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 30px rgba(124, 166, 191, 0.35));
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 4px 20px rgba(124, 166, 191, 0.15)); }
    50% { filter: drop-shadow(0 8px 40px rgba(124, 166, 191, 0.35)); }
}

/* Conclusion */
.pillars-conclusion {
    text-align: center;
    max-width: 700px;
    margin: 48px auto 0;
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--color-text);
}

/* Pelvic floor callout */
.pillars-callout {
    max-width: 820px;
    margin: 72px auto 0;
    padding: 48px 52px;
    background-color: var(--color-cream);
    border-top: 3px solid var(--color-primary);
    text-align: center;
    position: relative;
    transition: all 0.5s ease;
}

.pillars-callout:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(124, 166, 191, 0.12);
}

.pillars-callout > p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.85;
    margin-bottom: 16px;
}

.pillars-callout > p:last-child {
    margin-bottom: 0;
}

.pillars-callout-media {
    max-width: 320px;
    margin: 36px auto 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(124, 166, 191, 0.12);
}
.pillars-callout-media img {
    display: block;
    width: 100%;
    height: auto;
}

.pillars-callout-intro {
    font-family: var(--font-body);
    font-size: 1rem !important;
    color: var(--color-text-light);
    margin-bottom: 8px !important;
    letter-spacing: 0.02em;
}

.pillars-callout-highlight {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 24px !important;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark), var(--color-primary-light), var(--color-primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Sections (general) ---------- */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-overline {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 0;
    color: var(--color-text);
}

.section-divider {
    width: 40px;
    height: 1.5px;
    background-color: var(--color-primary);
    margin: 20px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-light);
    margin-top: 20px;
    margin-bottom: 70px;
}

.section-note {
    text-align: center;
    margin-top: 48px;
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* ---------- About ---------- */
.section-about {
    background-color: var(--color-cream);
}

.about-content {
    max-width: 680px;
    margin: 50px auto 0;
}

.about-grid {
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--color-primary-light);
    z-index: -1;
    transition: all var(--transition-slow);
    pointer-events: none;
}

.about-image:hover::after {
    top: 10px;
    left: 10px;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: grayscale(10%);
    transition: all var(--transition-slow);
}

.about-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-lead {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 24px;
}

.about-text {
    text-align: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.9;
}

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

.about-placeholder {
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

/* ---------- Services ---------- */
.section-services {
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
    gap: 24px;
}

.service-card {
    background-color: var(--color-cream);
    padding: 48px 40px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: default;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-ultra-light), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 166, 191, 0.15);
}

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

.service-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(124, 166, 191, 0.12);
    line-height: 1;
    margin-bottom: 20px;
    transition: color var(--transition);
    position: relative;
}

.service-card:hover .service-number {
    color: rgba(124, 166, 191, 0.25);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: var(--color-text);
    position: relative;
    transition: color var(--transition);
}

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

.service-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.8;
    position: relative;
}

.service-line {
    width: 30px;
    height: 1.5px;
    background-color: var(--color-primary);
    margin: auto auto 0;
    transition: width var(--transition-slow);
    position: relative;
}

.service-card:hover .service-line {
    width: 60px;
}

.service-sub {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(124, 166, 191, 0.2);
}

.service-sub-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 6px;
}

.service-sub-item {
    font-size: 0.9375rem;
    color: var(--color-text);
    font-style: italic;
    margin: 0;
}

.service-sub-item + .service-sub-item {
    margin-top: 4px;
}

.service-modalities {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.service-modality {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.service-modality-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.service-modality-value {
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--color-text-light);
}

/* ---------- Quote Banner ---------- */
.quote-banner {
    background-color: var(--color-text);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-banner::before,
.quote-banner::after {
    content: '"';
    position: absolute;
    font-family: var(--font-heading);
    font-size: 20rem;
    color: rgba(124, 166, 191, 0.06);
    line-height: 1;
    pointer-events: none;
}

.quote-banner::before {
    top: -40px;
    left: 5%;
}

.quote-banner::after {
    bottom: -120px;
    right: 5%;
}

.quote-banner blockquote p {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-cream);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- Contact ---------- */
.section-contact {
    background-color: var(--color-beige);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

/* With a photo: a full-height portrait panel beside the form + details, so the
   image reads as part of the section rather than a floating thumbnail. */
.contact-grid--photo {
    grid-template-columns: 0.82fr 1fr;
    align-items: stretch;
    max-width: 1000px;
}

.contact-photo {
    border-radius: 16px;
    overflow: hidden;
}
.contact-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.contact-panel {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.contact-form .form-group {
    width: 100%;
}

.contact-form .btn {
    align-self: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid rgba(124, 166, 191, 0.25);
    background-color: transparent;
    color: var(--color-text);
    transition: border-color var(--transition);
    outline: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
    font-weight: 300;
}

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

/* Animated underline for inputs */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group:focus-within::after {
    width: 100%;
}

.contact-info {
    padding-top: 8px;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 36px;
}

.contact-info-item {
    margin-bottom: 28px;
}

.contact-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 6px;
}

.contact-info-item p {
    font-size: 1rem;
    color: var(--color-text);
}


/* ---------- Alert ---------- */
.alert {
    padding: 24px 32px;
    margin-bottom: 48px;
    text-align: center;
    animation: slideDown 0.5s ease;
}

.alert-success {
    background-color: rgba(124, 166, 191, 0.12);
    border: 1px solid var(--color-primary-light);
    color: var(--color-text);
}

.alert-error {
    background-color: rgba(191, 124, 124, 0.12);
    border: 1px solid rgba(191, 124, 124, 0.5);
    color: var(--color-text);
}

.alert-info {
    background-color: rgba(124, 166, 191, 0.10);
    border: 1px solid var(--color-primary-light);
    color: var(--color-text);
}

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

/* ---------- Footer ---------- */
.footer {
    background-color: var(--color-text);
    color: var(--color-cream);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.footer-version {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 0.6rem;
    color: var(--color-beige);
    opacity: 0.35;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.footer-brand.brand-title .brand-title-name {
    font-size: 2.5rem;
    color: var(--color-white);
}

.footer-brand.brand-title .brand-title-sub {
    margin-top: 4px;
    font-size: 1.75rem;
    color: var(--color-primary-light);
}

.footer-divider {
    width: 30px;
    height: 1px;
    background-color: var(--color-primary);
    margin: 20px auto;
}

.footer-socials {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.footer-socials li {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(163, 196, 214, 0.3);
    color: var(--color-primary-light);
    transition: color var(--transition), border-color var(--transition), transform var(--transition), background-color var(--transition);
}

.footer-socials a:hover {
    color: var(--color-white);
    border-color: var(--color-primary-light);
    background-color: rgba(163, 196, 214, 0.1);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-beige);
    opacity: 0.5;
    letter-spacing: 0.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 40px;
    }

    .about-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background-color: var(--color-cream);
        padding: 100px 40px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 0.875rem;
        border-bottom: 1px solid rgba(124, 166, 191, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    /* Dropdown: render inline/expanded inside the slide-in panel. */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav-links .nav-dropdown-menu a {
        padding: 16px 0 16px 16px;
        font-size: 0.8125rem;
        letter-spacing: 2px;
        border-bottom: 1px solid rgba(124, 166, 191, 0.1);
    }

    /* Hero */
    .hero-scroll-indicator {
        display: none;
    }

    /* Pillars */
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pillars .pillars-grid--two {
        grid-template-columns: 1fr !important;
    }

    .pillar-card {
        padding: 32px 24px;
    }

    .pillars::before {
        display: none;
    }

    .pillars-callout {
        padding: 36px 28px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
    }

    .about-image::after {
        top: 10px;
        left: 10px;
    }

    .about-image img {
        height: 350px;
    }

    .service-card {
        padding: 36px 28px 28px;
    }

    /* Quote */
    .quote-banner {
        padding: 70px 24px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Stack the photo above the form on phones (class beats the base selector). */
    .contact-grid--photo {
        grid-template-columns: 1fr;
    }
    .contact-photo {
        height: 360px;
    }

    .contact-form .btn {
        width: 100%;
        text-align: center;
    }

    /* Quote */
    .quote-banner::before,
    .quote-banner::after {
        font-size: 10rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-overline {
        font-size: 0.625rem;
        letter-spacing: 3px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 0.75rem;
    }

    .service-number {
        font-size: 2.25rem;
    }

    .about-image img {
        height: 280px;
    }

    .about-grid {
        max-width: 100%;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .pillar-card h3 {
        font-size: 1rem;
    }

    .quote-banner blockquote p {
        font-size: 1.125rem;
    }

    .quote-banner::before,
    .quote-banner::after {
        font-size: 6rem;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .cursor-glow {
        display: none;
    }
}

/* ========== EVENTOS PAGE ========== */
.section-eventos { background-color: var(--color-white); min-height: 70vh; }

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.evento-card {
    background-color: var(--color-cream);
    border: 1px solid rgba(124, 166, 191, 0.18);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.evento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(90, 139, 168, 0.18);
}

.evento-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-primary-ultra-light);
}
.evento-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.evento-card-body { padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.evento-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 600; color: var(--color-text); margin: 0;
}
.evento-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: 0.85rem; color: var(--color-primary-dark);
    text-transform: uppercase; letter-spacing: 0.5px; margin: 0;
}
.evento-card-desc { color: var(--color-text-light); font-size: 0.95rem; line-height: 1.6; margin: 0; }

.evento-card-actions { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.evento-card-spots { font-size: 0.85rem; color: var(--color-text-light); }

.evento-pill {
    display: inline-block; padding: 8px 16px; border-radius: 4px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.evento-pill--ok { background: rgba(124, 166, 191, 0.15); color: var(--color-primary-dark); }
.evento-pill--full { background: rgba(84, 84, 84, 0.1); color: var(--color-text-light); }

.eventos-empty { text-align: center; color: var(--color-text-light); padding: 40px 0; }

.eventos-all-link { text-align: center; margin: 40px 0 0; }
.eventos-all-link a {
    color: var(--color-primary-dark); font-weight: 600; text-decoration: none;
    border-bottom: 1px solid rgba(124, 166, 191, 0.4);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.eventos-all-link a:hover { color: var(--color-text); border-color: currentColor; }

/* Eventos page (/eventos): same cards inside the user-zone layout. */
.eventos-grid--page { max-width: none; margin: 0 0 2rem; }
.evento-card-link { color: inherit; text-decoration: none; }
.evento-card-link:hover { text-decoration: underline; }

/* Event media gallery (public detail page + admin management). */
.evento-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.evento-galeria a { display: block; border-radius: 6px; overflow: hidden; }
.evento-galeria img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    transition: transform 0.35s ease;
}
.evento-galeria a:hover img { transform: scale(1.05); }

/* Video tiles: a muted, non-interactive preview inside the anchor, with a
   play badge; clicking opens the lightbox (or the file itself without JS). */
.galeria-video-tile { position: relative; }
.galeria-video-tile video {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    background: #000; pointer-events: none;
}
.galeria-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 24, 28, 0.65); color: #fff; font-size: 18px;
    padding-left: 4px;  /* optically center the triangle */
    transition: background 0.2s ease;
}
.galeria-video-tile:hover .galeria-play { background: rgba(20, 24, 28, 0.85); }
.evento-foto-admin .galeria-video-tile { border-radius: 0; }

/* Upload progress bar (static/js/upload-progress.js). */
.upload-progress {
    display: none; align-items: center; gap: 12px; margin-top: 10px;
}
.upload-progress.is-active { display: flex; }
.upload-progress__track {
    flex: 1; height: 8px; border-radius: 4px; overflow: hidden;
    background: rgba(124, 166, 191, 0.25);
}
.upload-progress__bar {
    height: 100%; width: 0; background: #7ca6bf;
    transition: width 0.2s ease;
}
.upload-progress__label { font-size: 0.85rem; white-space: nowrap; }

/* Lightbox overlay (static/js/lightbox.js). */
body.lb-noscroll { overflow: hidden; }
.lb-overlay {
    position: fixed; inset: 0; z-index: 3000;
    display: none; align-items: center; justify-content: center;
    background: rgba(15, 18, 22, 0.93);
}
.lb-overlay.is-open { display: flex; }
.lb-content {
    display: flex; align-items: center; justify-content: center;
    max-width: min(92vw, 1200px); max-height: 86vh;
}
.lb-content img, .lb-content video {
    max-width: 100%; max-height: 86vh; display: block;
    border-radius: 8px; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.lb-btn {
    position: absolute; z-index: 1;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12); color: #fff;
    font-size: 22px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, 0.28); }
/* display:flex above would defeat the hidden attribute (single-item galleries). */
.lb-btn[hidden], .lb-counter[hidden] { display: none; }
.lb-close { top: 16px; right: 16px; font-size: 28px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-counter {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; letter-spacing: 0.05em;
}
@media (max-width: 600px) {
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
    .lb-content { max-width: 100vw; }
}

.evento-foto-admin {
    border: 1px solid rgba(124, 166, 191, 0.25); border-radius: 6px;
    overflow: hidden; background: var(--color-cream);
}
.evento-foto-admin__bar {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
}
.evento-foto-admin__bar .uz-pill { margin-right: auto; }

@media (max-width: 600px) {
    .eventos-grid { grid-template-columns: 1fr; }
    .evento-galeria { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
