/* ============================================================
   OtrasManeras - Core CSS
   Reset, tokens por defecto, utilidades y layout base.
   Este archivo se combina con components.css y un theme.
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    font-family: var(--font-body, system-ui, -apple-system, sans-serif);
    font-size: var(--text-base, 1rem);
    line-height: 1.6;
    color: var(--color-text, #1e293b);
    background-color: var(--color-bg, #ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

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

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

ul, ol {
    list-style: none;
}

/* ---------- Tokens por Defecto (fallbacks) ---------- */
:root {
    /* Colores */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-accent: #1e3a5f;
    --color-accent-hover: #2c5282;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Tipografía */
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ---------- Utilidades ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

/* ---------- Navegación Base ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

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

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

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

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: var(--space-8) var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
}

.main-nav.is-open {
    transform: translateX(0);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.nav-list a {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-2) 0;
    display: block;
    position: relative;
}

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

.nav-list a:hover::after,
.nav-list a:focus::after {
    width: 100%;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    .main-nav {
        position: static;
        transform: none;
        background: transparent;
        padding: 0;
        overflow: visible;
    }
    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: var(--space-8);
    }
    .nav-list a {
        font-size: var(--text-base);
        padding: var(--space-2) 0;
    }
}

/* ---------- Secciones Base ---------- */
.section {
    padding: var(--space-16) var(--space-6);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-header {
    margin-bottom: var(--space-12);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-20) var(--space-8);
    }
    .section-title {
        font-size: var(--text-4xl);
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: var(--text-5xl);
    }
}

/* ---------- Hero Base ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + var(--space-12)) var(--space-6) var(--space-16);
    position: relative;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 55ch;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    margin-top: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        align-items: center;
    }
    .hero-title {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

/* ---------- Nosotros Base ---------- */
.nosotros-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    align-items: center;
}

.nosotros-media {
    position: relative;
    flex: 1;
    width: 100%;
}

.nosotros-img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.nosotros-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.nosotros-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.nosotros-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

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

.nosotros-feature-text h4 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.nosotros-feature-text p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .nosotros-grid {
        flex-direction: row;
        align-items: center;
    }
    .nosotros-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Servicios Base ---------- */
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Proceso Base ---------- */
.proceso-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    position: relative;
}

.proceso-step {
    display: flex;
    gap: var(--space-6);
    position: relative;
}

.proceso-step-number {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
    border-radius: 50%;
}

.proceso-step-content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.proceso-step-content p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .proceso-steps {
        flex-direction: row;
    }
    .proceso-step {
        flex: 1;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ---------- Valores Base ---------- */
.valores-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.valor-card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
}

.valor-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-accent);
}

.valor-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.valor-card p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .valores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Testimonios Base ---------- */
.testimonios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.testimonio-card {
    padding: var(--space-8);
    position: relative;
}

.testimonio-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
}

.testimonio-text {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonio-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonio-author-info h4 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
}

.testimonio-author-info span {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- CTA Base ---------- */
.section-cta {
    padding: var(--space-16) var(--space-6);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-12) var(--space-8);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

/* ---------- Contacto Base ---------- */
.contacto-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.contacto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contacto-item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-accent);
}

.contacto-item-content h4 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.contacto-item-content p,
.contacto-item-content a {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.contacto-form {
    flex: 1;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

@media (min-width: 768px) {
    .contacto-grid {
        flex-direction: row;
    }
}

/* ---------- Footer Base ---------- */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.footer-description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-list a {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

.footer-address {
    font-style: normal;
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
    text-align: center;
}

.footer-copyright,
.footer-credit {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-credit a {
    color: var(--color-accent);
    font-weight: 500;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ---------- Animaciones Base ---------- */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger para grids */
.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
/* ============================================================
   OtrasManeras - Components CSS
   Botones, tarjetas, badges, formularios y componentes UI.
   Depende de los tokens definidos en core.css.
   ============================================================ */

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
}

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

.btn-secondary:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ---------- Tarjetas ---------- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: calc(100% + var(--space-12));
    margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-6);
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.card-description {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-accent);
}

.card-link::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.card-link:hover::after {
    transform: translateX(4px);
}

/* ---------- Tarjeta de Servicio ---------- */
.servicio-card {
    composes: card;
    text-align: left;
}

.servicio-card .card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

/* ---------- Tarjeta de Valor ---------- */
.valor-card {
    composes: card;
    text-align: center;
    padding: var(--space-8) var(--space-6);
}

/* ---------- Tarjeta de Testimonio ---------- */
.testimonio-card {
    composes: card;
}

/* ---------- Floating Badge ---------- */
.float-badge {
    position: absolute;
    bottom: var(--space-6);
    left: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.float-badge-number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.float-badge-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ---------- Formulario ---------- */
.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Separador ---------- */
.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: var(--space-8) 0;
}

/* ---------- Tag/Label ---------- */
.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* ---------- Utilidades de Layout ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

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

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

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Scrollbar Personalizada (temas oscuros) ---------- */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-lg);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
/**
 * OtrasManeras - Tema: Corporativo Clásico
 * Uso: Constructoras, inmobiliarias, salud, educación, ONGs.
 * Sensación: Tradición, confianza, prestigio, cercanía.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Colores */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-accent: #1e3a5f;           /* Azul marino institucional */
    --color-accent-hover: #2c5282;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Tipografía */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Layout */
    --nav-height: 80px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.06);
}

/* Fondo limpio */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* Navegación elegante */
.site-header {
    background: var(--color-bg);
    border-bottom-color: var(--color-border);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
}

.main-nav {
    background: var(--color-bg);
}

@media (min-width: 768px) {
    .main-nav {
        background: transparent;
    }
}

/* Hero clásico */
.hero {
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-16));
    padding-bottom: var(--space-20);
}

.hero-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.hero-description {
    color: var(--color-text-muted);
}

/* Cards limpias */
.card {
    background: var(--color-surface);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

/* Botones institucionales */
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

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

.btn-secondary:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Inputs */
.form-group input,
.form-group textarea,
.form-group select {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* Secciones alternadas */
.section-alt {
    background: var(--color-bg-alt);
}

/* CTA */
.cta-box {
    background: var(--color-bg);
    border-color: var(--color-border);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.site-footer {
    background: var(--color-bg-alt);
    border-top-color: var(--color-border);
}

.footer-social a {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Badges */
.badge {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-accent);
}

.badge::before {
    background: var(--color-accent);
}

/* Enfasis tipográfico */
.section-title {
    font-weight: 700;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-lg);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
