/* ========================================
   DIDIER STUDIO & BARBER — Dark Premium CSS
   ======================================== */

/* --- Variables --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #c9a96e;
    --accent-hover: #b8943d;
    --border: #2a2a2a;
    --navbar-bg: rgba(10, 10, 10, 0.95);
    --glow-color: rgba(201, 169, 110, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --nav-height: 70px;
}

/* --- Theme: Dark Silver --- */
[data-theme="silver"] {
    --bg-primary: #0b0c0e;
    --bg-secondary: #151719;
    --text-primary: #e8e8e8;
    --text-secondary: #8a8f96;
    --accent: #a8b4c0;
    --accent-hover: #8a9bab;
    --border: #252830;
    --navbar-bg: rgba(11, 12, 14, 0.95);
    --glow-color: rgba(168, 180, 192, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* --- Theme: Cream & Walnut --- */
[data-theme="cream"] {
    --bg-primary: #f5f0e8;
    --bg-secondary: #ebe5d9;
    --text-primary: #1a1510;
    --text-secondary: #6b6050;
    --accent: #8b5e3c;
    --accent-hover: #6d4528;
    --border: #d4cbb8;
    --navbar-bg: rgba(245, 240, 232, 0.95);
    --glow-color: rgba(139, 94, 60, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.08);
}

/* Cream overrides: hero SVG pattern lighter */
[data-theme="cream"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23000000' stroke-opacity='0.04' fill='none'%3E%3Cline x1='0' y1='40' x2='40' y2='0' stroke-width='0.5'/%3E%3Cline x1='-10' y1='40' x2='30' y2='-10' stroke-width='0.5'/%3E%3Cline x1='10' y1='50' x2='50' y2='10' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Cream + Pulse layout */
[data-theme="cream"][data-layout="pulse"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='22' viewBox='0 0 42 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23000000' stroke-opacity='0.04' fill='none'%3E%3Crect x='1' y='1' width='18' height='9' rx='1' stroke-width='0.5'/%3E%3Crect x='22' y='1' width='18' height='9' rx='1' stroke-width='0.5'/%3E%3Crect x='11' y='12' width='18' height='9' rx='1' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Cream + Carousel layout */
[data-theme="cream"][data-layout="carousel"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='20' viewBox='0 0 200 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23000000' stroke-opacity='0.04' fill='none'%3E%3Cpath d='M0 10 Q25 6 50 10 T100 10 T150 10 T200 10' stroke-width='0.5'/%3E%3Cpath d='M0 15 Q30 12 60 15 T120 15 T180 15 T200 15' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Cream + Split layout */
[data-theme="cream"][data-layout="split"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23000000' stroke-opacity='0.035' fill='none'%3E%3Cline x1='0' y1='0' x2='40' y2='40' stroke-width='0.5'/%3E%3Cline x1='40' y1='0' x2='0' y2='40' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Cream + Minimal layout */
[data-theme="cream"][data-layout="minimal"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='0.5' fill='%23000000' fill-opacity='0.04'/%3E%3C/svg%3E");
}

/* Cream + Cinematic layout */
[data-theme="cream"][data-layout="cinematic"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='2' x2='4' y2='2' stroke='%23000000' stroke-opacity='0.03' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* Cream cinematic vignette uses dark */
[data-theme="cream"][data-layout="cinematic"] .hero::after {
    background:
        linear-gradient(to bottom, var(--bg-primary) 0%, transparent 12%, transparent 88%, var(--bg-primary) 100%),
        radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.06) 100%);
}

/* Cream: navbar soft shadow instead of dark */
[data-theme="cream"] .navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* --- Theme: Negro Mate --- */
[data-theme="matte"] {
    --bg-primary: #060606;
    --bg-secondary: #0f0f0f;
    --text-primary: #d0d0d0;
    --text-secondary: #686868;
    --accent: #888078;
    --accent-hover: #6e6860;
    --border: #1c1c1c;
    --navbar-bg: rgba(6, 6, 6, 0.95);
    --glow-color: rgba(136, 128, 120, 0.10);
    --shadow-color: rgba(0, 0, 0, 0.6);
}

/* --- Theme: Platino --- */
[data-theme="platinum"] {
    --bg-primary: #0c0c0e;
    --bg-secondary: #16161a;
    --text-primary: #ececec;
    --text-secondary: #9898a0;
    --accent: #c0b8b0;
    --accent-hover: #a8a098;
    --border: #262630;
    --navbar-bg: rgba(12, 12, 14, 0.95);
    --glow-color: rgba(192, 184, 176, 0.10);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* --- Theme: Carbón --- */
[data-theme="carbon"] {
    --bg-primary: #0a0a0c;
    --bg-secondary: #141418;
    --text-primary: #e0e0e4;
    --text-secondary: #78788a;
    --accent: #6e7480;
    --accent-hover: #585e68;
    --border: #22222c;
    --navbar-bg: rgba(10, 10, 12, 0.95);
    --glow-color: rgba(110, 116, 128, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* --- Theme: Grafito --- */
[data-theme="graphite"] {
    --bg-primary: #0d0c0b;
    --bg-secondary: #181716;
    --text-primary: #e4e2e0;
    --text-secondary: #8a8884;
    --accent: #a09890;
    --accent-hover: #888078;
    --border: #2a2826;
    --navbar-bg: rgba(13, 12, 11, 0.95);
    --glow-color: rgba(160, 152, 144, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* --- Font: Modern (Bebas Neue + DM Sans) --- */
[data-font="modern"] {
    --font-heading: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
}

/* --- Font: Classic (Cormorant Garamond + Source Sans 3) --- */
[data-font="classic"] {
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
}

/* --- Font: Bold (Oswald + Roboto) --- */
[data-font="bold"] {
    --font-heading: 'Oswald', Impact, sans-serif;
    --font-body: 'Roboto', -apple-system, sans-serif;
}

/* --- Font: Vintage (Libre Baskerville + Lato) --- */
[data-font="vintage"] {
    --font-heading: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Lato', -apple-system, sans-serif;
}

/* --- Font: Minimal (Montserrat + Nunito Sans) --- */
[data-font="minimal"] {
    --font-heading: 'Montserrat', -apple-system, sans-serif;
    --font-body: 'Nunito Sans', -apple-system, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.accent-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 1.2rem auto 1.5rem;
}

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

/* --- Section spacing --- */
section {
    padding: 100px 0;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 45px;
    width: auto;
    border-radius: 4px;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 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;
    background: var(--bg-primary);
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.03' fill='none'%3E%3Cline x1='0' y1='40' x2='40' y2='0' stroke-width='0.5'/%3E%3Cline x1='-10' y1='40' x2='30' y2='-10' stroke-width='0.5'/%3E%3Cline x1='10' y1='50' x2='50' y2='10' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    transition: background-image 0.5s ease;
}

/* Pulse layout: brick pattern */
[data-layout="pulse"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='22' viewBox='0 0 42 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.025' fill='none'%3E%3Crect x='1' y='1' width='18' height='9' rx='1' stroke-width='0.5'/%3E%3Crect x='22' y='1' width='18' height='9' rx='1' stroke-width='0.5'/%3E%3Crect x='11' y='12' width='18' height='9' rx='1' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Carousel layout: wood grain pattern */
[data-layout="carousel"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='20' viewBox='0 0 200 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.025' fill='none'%3E%3Cpath d='M0 10 Q25 6 50 10 T100 10 T150 10 T200 10' stroke-width='0.5'/%3E%3Cpath d='M0 15 Q30 12 60 15 T120 15 T180 15 T200 15' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Split layout: cross-hatch pattern */
[data-layout="split"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.025' fill='none'%3E%3Cline x1='0' y1='0' x2='40' y2='40' stroke-width='0.5'/%3E%3Cline x1='40' y1='0' x2='0' y2='40' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Minimal layout: dot grid pattern */
[data-layout="minimal"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='0.5' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* Cinematic layout: horizontal scan lines */
[data-layout="cinematic"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='2' x2='4' y2='2' stroke='%23ffffff' stroke-opacity='0.02' stroke-width='0.5'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    margin: 0 auto 2.5rem;
    object-fit: cover;
    box-shadow: 0 0 40px var(--glow-color);
}

.hero h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero h1 .amp {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.hero-cta-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.hero-cta-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-primary);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: scrollBounce 2s ease infinite;
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-secondary);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   CONCEPTO
   ======================================== */
.concepto {
    background: var(--bg-secondary);
}

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

.concepto-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.concepto-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   SERVICIOS
   ======================================== */
.servicios {
    background: var(--bg-primary);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.service-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.service-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

/* ========================================
   ACADEMIA
   ======================================== */
.academia {
    background: var(--bg-secondary);
}

.academia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.academia-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.academia-card {
    background: var(--bg-primary);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center;
}

.academia-card-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.academia-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.academia-card-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2rem;
}

.academia-benefits {
    list-style: none;
    text-align: left;
}

.academia-benefits li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.academia-benefits li:last-child {
    border-bottom: none;
}

.academia-benefits li svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ========================================
   EQUIPO
   ======================================== */
.equipo {
    background: var(--bg-primary);
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-photo svg {
    width: 64px;
    height: 64px;
    color: var(--border);
}

.team-card h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   UBICACION
   ======================================== */
.ubicacion {
    background: var(--bg-secondary);
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-container {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.ubicacion-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.horarios-list {
    list-style: none;
    margin-bottom: 2rem;
}

.horarios-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.horarios-list li:last-child {
    border-bottom: none;
}

.horarios-day {
    color: var(--text-primary);
    font-weight: 500;
}

.horarios-time {
    color: var(--text-secondary);
}

.horarios-closed {
    color: var(--accent);
}

/* ========================================
   CONTACTO
   ======================================== */
.contacto {
    background: var(--bg-primary);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent);
}

.contact-card-icon {
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-card-icon svg {
    width: 28px;
    height: 28px;
}

.contact-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   HERO SLIDES & CAROUSEL
   ======================================== */

/* Slides: hidden by default (2 & 3) */
.hero-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-slide-2,
.hero-slide-3 {
    display: none;
}

/* Carousel layout: absolute positioned slides with opacity transitions */
[data-layout="carousel"] .hero-content {
    position: relative;
    width: 100%;
    min-height: 400px;
}

[data-layout="carousel"] .hero-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-layout="carousel"] .hero-slide-2,
[data-layout="carousel"] .hero-slide-3 {
    display: flex;
}

[data-layout="carousel"] .hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Slide icon (slides 2 & 3) */
.hero-slide-icon {
    width: 80px;
    height: 80px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero-slide-icon svg {
    width: 36px;
    height: 36px;
}

.hero-slide-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Hero dots */
.hero-dots {
    display: none;
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 12px;
    z-index: 2;
}

[data-layout="carousel"] .hero-dots {
    display: flex;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.hero-dot:hover {
    background: var(--accent);
}

/* ========================================
   PULSE ANIMATION (layout=pulse)
   ======================================== */
@keyframes heroPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px var(--glow-color);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 60px var(--glow-color), 0 0 100px var(--glow-color);
    }
}

@keyframes subtitleBreath {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

[data-layout="pulse"] .hero-logo {
    animation: heroPulse 3s ease-in-out infinite;
}

[data-layout="pulse"] .hero-subtitle {
    animation: subtitleBreath 4s ease-in-out infinite;
}

/* ========================================
   SPLIT LAYOUT
   ======================================== */
[data-layout="split"] .hero-slide-1 {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
    padding: 0 2rem;
}

[data-layout="split"] .hero-logo {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 16px;
}

[data-layout="split"] .hero h1 {
    white-space: normal;
}

[data-layout="split"] .hero-buttons {
    justify-content: flex-start;
}

/* ========================================
   MINIMAL LAYOUT
   ======================================== */
[data-layout="minimal"] .hero-logo {
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    opacity: 0;
    position: absolute;
}

[data-layout="minimal"] .hero h1 {
    font-size: 5.5rem;
    letter-spacing: 14px;
    margin-bottom: 2rem;
    white-space: normal;
}

[data-layout="minimal"] .hero-subtitle {
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

[data-layout="minimal"] .hero-cta:not(.hero-cta-primary) {
    border-color: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ========================================
   CINEMATIC LAYOUT
   ======================================== */
[data-layout="cinematic"] .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, var(--bg-primary) 0%, transparent 12%, transparent 88%, var(--bg-primary) 100%),
        radial-gradient(ellipse at center, transparent 50%, var(--bg-primary) 100%);
    pointer-events: none;
    z-index: 0;
}

[data-layout="cinematic"] .hero-content {
    z-index: 1;
}

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

[data-layout="cinematic"] .hero-logo {
    animation: cinematicFloat 6s ease-in-out infinite;
}

[data-layout="cinematic"] .hero h1 {
    letter-spacing: 12px;
}

[data-layout="cinematic"] .hero-subtitle {
    letter-spacing: 4px;
}

/* ========================================
   DEMO TOGGLES (tema, tipografía, layout)
   ======================================== */
.demo-toggle {
    position: fixed;
    left: 24px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: var(--font-body);
}

.demo-toggle:hover {
    opacity: 1;
}

.theme-toggle {
    bottom: 24px;
}

.font-toggle {
    bottom: 80px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.layout-toggle {
    bottom: 136px;
}

.layout-toggle svg,
.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .concepto-grid,
    .academia-content,
    .ubicacion-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .concepto-image {
        aspect-ratio: 16/9;
        order: -1;
    }

    .equipo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    section {
        padding: 70px 0;
    }

    .container {
        padding: 0 1.2rem;
    }

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

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--navbar-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    /* Hero mobile */
    .hero h1 {
        font-size: 1.6rem;
        letter-spacing: 3px;
        white-space: normal;
    }

    .hero-logo {
        width: 180px;
        height: 180px;
        border-radius: 16px;
        box-shadow:
            0 0 60px var(--glow-color),
            0 0 120px var(--glow-color);
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .hero-cta {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Grids mobile */
    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .equipo-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Demo toggles mobile */
    .demo-toggle {
        width: 38px;
        height: 38px;
        left: 16px;
    }

    .theme-toggle {
        bottom: 16px;
    }

    .font-toggle {
        bottom: 66px;
        font-size: 14px;
    }

    .layout-toggle {
        bottom: 116px;
    }

    .layout-toggle svg,
    .theme-toggle svg {
        width: 17px;
        height: 17px;
    }

    /* Hero slides mobile */
    .hero-slide-title {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    .hero-slide-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .hero-slide-icon svg {
        width: 28px;
        height: 28px;
    }

    [data-layout="carousel"] .hero-content {
        min-height: 350px;
    }

    .hero-dots {
        bottom: 4rem;
    }

    /* Split mobile: stack vertically */
    [data-layout="split"] .hero-slide-1 {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    [data-layout="split"] .hero-logo {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    [data-layout="split"] .hero-buttons {
        justify-content: center;
    }

    /* Minimal mobile */
    [data-layout="minimal"] .hero h1 {
        font-size: 2.4rem;
        letter-spacing: 6px;
    }
}

/* Small mobile */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .service-card {
        padding: 1.5rem;
    }

    .academia-card {
        padding: 2rem 1.5rem;
    }
}
