:root {
    --primary: #1e293b;
    --primary-light: #334155;
    --accent: #d97706;
    --accent-hover: #b45309;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}

/* Cabecera */
header {
    background-color: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}
.logo-area img {
    width: 40px;
    height: 40px;
}
.logo-area span {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}
nav a:hover, nav a.active {
    color: var(--accent);
}
.btn-cta-nav {
    background-color: var(--accent);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.btn-cta-nav:hover {
    background-color: var(--accent-hover);
}

.burger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30,41,59,0.95) 0%, rgba(15,23,42,0.9) 100%), url('images/hero.jpg') no-repeat center center/cover;
    color: white;
    padding: 6rem 0;
    text-align: center;
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-primary {
    background-color: var(--accent);
    color: white;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
}
.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Stats */
.stats {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
    border-bottom: 4px solid var(--accent);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.stat-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Pasos */
.section-padding {
    padding: 5rem 0;
}
.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: var(--primary);
}
.section-title span {
    color: var(--accent);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.step-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
    text-align: center;
}
.step-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.step-card h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.service-img {
    height: 200px;
    overflow: hidden;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-body h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service-body p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.service-link {
    margin-top: auto;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.service-link:hover {
    color: var(--accent-hover);
}

/* Asymmetric Section */
.asym-section {
    background-color: #f1f5f9;
}
.asym-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.asym-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.asym-content h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
.asym-content ul {
    list-style: none;
    margin-top: 1.5rem;
}
.asym-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}
.asym-content li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Tarifas */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}
.price-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card.featured {
    border: 2px solid var(--accent);
    transform: scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}
.price-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.price-value {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.price-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1;
}
.price-card li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
}
.price-card li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Formulario */
.form-section {
    background-color: var(--primary);
    color: white;
    padding: 5rem 0;
}
.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
}
.form-wrapper h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
}
.form-wrapper p {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.9rem;
    color: #cbd5e1;
}
.form-group input, .form-group textarea {
    padding: 0.85rem;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--accent);
    background: rgba(255,255,255,0.1);
}
.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.form-checkbox input {
    width: auto;
    margin-top: 0.25rem;
}
.form-checkbox label {
    font-size: 0.85rem;
    line-height: 1.4;
}
.form-checkbox a {
    color: var(--accent);
    text-decoration: underline;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question i {
    transition: transform 0.2s;
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out, padding 0.2s ease-out;
}
.faq-answer.show {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Trust Layer y Footer */
.trust-layer {
    background-color: #f1f5f9;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.trust-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.trust-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}
.disclaimer {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    font-style: italic;
}

footer {
    background-color: var(--primary);
    color: #cbd5e1;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer-logo h3 {
    font-family: var(--font-serif);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.footer-links h4 {
    color: white;
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid var(--primary-light);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
}

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    z-index: 100;
    display: none;
}
.cookie-banner p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.cookie-banner a {
    color: var(--accent);
}
.cookie-btns {
    display: flex;
    gap: 0.75rem;
}
.cookie-btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    border: none;
}
.cookie-accept {
    background: var(--accent);
    color: white;
}
.cookie-reject {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #cbd5e1;
}

/* Map de contacto */
.map-container {
    width: 100%;
    height: 400px;
    margin-top: 2rem;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

/* Estilos Adaptativos */
@media (max-width: 1024px) {
    .pricing-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid .price-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    nav.show {
        display: flex;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .stats-grid, .steps-grid, .pricing-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    .asym-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}