/*
Theme Name:  Tu Manitas en la Sierra
Theme URI:   http://localhost/tumanitasenlasierra
Description: Tema personalizado para Tu Manitas en la Sierra - Reformas y Reparaciones en la Sierra de Madrid
Author:      Tu Manitas en la Sierra
Template:    twentytwentyfour
Version:     1.1.0
Text Domain: tumanitas-child
*/

/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
    --navy:        #1e3a5f;
    --navy-dark:   #152a45;
    --navy-light:  #2d5278;
    --gray:        #6b7280;
    --gray-light:  #9ca3af;
    --gray-bg:     #f3f4f6;
    --orange:      #f97316;
    --orange-dark: #ea580c;
    --white:       #ffffff;
    --text-dark:   #1f2937;
}

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

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Neutraliza el margin-top que WordPress inyecta por la Admin Bar */
html {
    margin-top: 0 !important;
}

/* Oculta la Admin Bar de WordPress en el frontend como capa de seguridad extra */
#wpadminbar {
    display: none !important;
}

body {
    font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Blueprint Background ───────────────────────────────────────────────────── */
.blueprint-bg {
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
}

.blueprint-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(21, 42, 69, 0.95) 100%);
}

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
/* ─── Suprimir navegación inyectada por el tema bloque padre ─────────────────── */
/* Twenty Twenty-Four (FSE) puede renderizar su wp:navigation incluso con    */
/* front-page.php. Lo ocultamos sin afectar a nuestro <nav> personalizado.   */
.wp-block-navigation,
header.wp-block-group,
.wp-site-blocks > header {
    display: none !important;
}

nav:not(.footer-links):not(.legal-toc):not(.legal-pages-nav) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: var(--navy);
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* Logo — izquierda */
.logo {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
}

/* Menú — centro */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    padding: 0.35rem 0.9rem;
    border-radius: 5px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    display: block;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

/* Botón CTA — derecha */
.nav-cta {
    flex-shrink: 0;
    background: var(--orange);
    color: #fff;
    padding: 0.55rem 1.4rem;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.nav-cta:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.5);
}

/* ─── Hero Section ───────────────────────────────────────────────────────────── */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.2);
    color: var(--orange);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 2px solid var(--orange);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hero h1 {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero h1 span {
    color: var(--orange);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    font-weight: 300;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.6s forwards;
    opacity: 0;
}

.cta-primary,
.cta-secondary {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-primary {
    background: var(--orange);
    color: white;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.cta-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
}

.cta-secondary {
    background: white;
    color: var(--navy);
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.cta-secondary:hover {
    background: var(--gray-bg);
    transform: translateY(-3px);
}

/* Decorative Elements */
.hero-decoration {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    pointer-events: none;
}

.hex-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 50px),
        repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 50px),
        repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 50px);
}

/* ─── Shared Section Utilities ───────────────────────────────────────────────── */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--navy);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ─── Local SEO / Areas Section ─────────────────────────────────────────────── */
.local-section {
    background: var(--gray-bg);
    padding: 6rem 2rem;
    position: relative;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.location-card {
    background: white;
    padding: 2.5rem;
    border: 2px solid #e8eaed;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--orange);
    transition: height 0.4s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--orange);
}

.location-card:hover::before {
    height: 100%;
}

.location-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.location-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.location-card h3 {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.location-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ─── Services Section ───────────────────────────────────────────────────────── */
.services-section {
    background: white;
    padding: 6rem 2rem;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #e8eaed;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--orange);
    opacity: 0.05;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 58, 95, 0.12);
    border-color: var(--orange);
}

.service-card:hover::after {
    width: 150px;
    height: 150px;
    opacity: 0.1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    transform: rotate(45deg);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon svg {
    transform: rotate(-45deg);
}

.service-card h3 {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-link {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.9rem;
}

/* ─── Benefits Section ───────────────────────────────────────────────────────── */
.benefits-section {
    background: var(--navy);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.benefits-section .section-tag  { color: var(--orange); }
.benefits-section .section-title { color: white; }
.benefits-section .section-description { color: rgba(255, 255, 255, 0.8); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.benefit-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.08), transparent);
    transition: left 0.6s ease;
}

.benefit-card:hover::before { left: 100%; }

.benefit-card:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-8px);
}

.benefit-number {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: 4rem;
    color: var(--orange);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.benefit-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--orange);
    clip-path: circle(50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.benefit-card:hover .benefit-icon-wrapper {
    transform: scale(1.1) rotate(360deg);
}

.benefit-icon-wrapper svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.benefit-card h3 {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ─── Testimonials Section ───────────────────────────────────────────────────── */
.testimonials-section {
    background: var(--gray-bg);
    padding: 6rem 2rem;
}

.testimonials-section .section-title { color: var(--navy); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: var(--text-dark);
    font-size: 0.97rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.testimonial-author strong {
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-light);
}

/* ─── Contact Section ────────────────────────────────────────────────────────── */
.contact-section {
    background: white;
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding: 2rem 0;
}

.contact-info h2 {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: 2.8rem;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact-info > p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--gray-bg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--orange);
    transition: height 0.3s ease;
}

.contact-method:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-method:hover::before {
    height: 100%;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: var(--orange);
    clip-path: circle(50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.contact-method-info h4 {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.contact-method-info a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-method-info a:hover {
    color: var(--orange);
}

/* ─── Contact Form ───────────────────────────────────────────────────────────── */
.contact-form {
    background: var(--navy);
    padding: 3rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Work Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 2px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--navy);
    color: white;
}

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

/* ─── RGPD Checkbox ──────────────────────────────────────────────────────────── */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.form-check input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--orange);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
}

.form-check label {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
    cursor: pointer;
    font-weight: 400;
}

.form-check label a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.form-check label a:hover {
    color: #fdba74;
}

/* ─── Submit Button ──────────────────────────────────────────────────────────── */
.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--orange);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    font-family: 'Work Sans', system-ui, sans-serif;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Form Notices ───────────────────────────────────────────────────────────── */
.form-notice {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-notice[data-type="success"] {
    background: rgba(209, 250, 229, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, 0.3);
}

.form-notice[data-type="error"] {
    background: rgba(254, 226, 226, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.3);
}

/* ─── WhatsApp Follow-up Button ─────────────────────────────────────────────── */
.wa-followup-btn {
    display: block;
    margin-top: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: #25d366;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.3px;
}

.wa-followup-btn:hover {
    background: #1da851;
    transform: translateY(-1px);
    color: white;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.footer-content > p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Scroll Fade ────────────────────────────────────────────────────────────── */
.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Hamburger Button ───────────────────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    .nav-cta {
        display: none;
    }

    /* Hamburger visible en móvil */
    .nav-hamburger {
        display: flex;
    }

    /* Menú oculto por defecto, desplegable al abrir */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        padding: 0.5rem 0 1rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        gap: 0;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    .nav-links.nav-mobile-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

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

    .nav-links a {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero h1          { font-size: 2.5rem; }
    .section-title    { font-size: 2.2rem; }
    .services-grid,
    .locations-grid,
    .benefits-grid,
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-form     { padding: 2rem; }
    .nav-container    { padding: 0 1rem; }
    .logo             { font-size: 1.3rem; }
    .logo-icon        { width: 28px; height: 28px; }
    .local-section,
    .services-section,
    .benefits-section,
    .testimonials-section,
    .contact-section  { padding: 4rem 1.25rem; }
}

/* ─── Aviso Legal + Páginas legales compartidas ──────────────────────────────── */
.page-aviso-legal {
    background: var(--gray-bg);
}

/* Tabla de contenidos */
.legal-toc {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--navy);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}

.legal-toc__title {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--navy);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.legal-toc__list {
    list-style: none;
    margin: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.legal-toc__list li {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.5;
}

.legal-toc__list a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-toc__list a:hover {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Navegación entre páginas legales */
.legal-pages-nav {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}

.legal-pages-nav__label {
    font-size: 0.85rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.legal-pages-nav__links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.legal-pages-nav__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.legal-pages-nav__btn:hover {
    background: var(--orange);
    transform: translateY(-1px);
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 768px) {
    .legal-toc {
        padding: 1.25rem;
    }
    .legal-pages-nav__links {
        flex-direction: column;
        align-items: center;
    }
    .legal-pages-nav__btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ─── Política de Privacidad ─────────────────────────────────────────────────── */
.page-privacidad {
    background: var(--gray-bg);
}

.privacy-main {
    padding-top: 80px;
    min-height: calc(100dvh - 160px);
}

.privacy-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}

.privacy-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.privacy-header h1 {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--navy);
    letter-spacing: 1px;
    margin: 0.5rem 0 0.75rem;
}

.privacy-updated {
    font-size: 0.85rem;
    color: var(--gray-light);
}

.privacy-content {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.privacy-section {
    padding: 2.25rem 2.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section h2 {
    font-family: 'Bebas Neue', 'Work Sans', sans-serif;
    font-size: 1.5rem;
    color: var(--navy);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.privacy-section p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 0.9rem;
    font-size: 0.97rem;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.privacy-section ul li {
    color: var(--gray);
    font-size: 0.97rem;
    line-height: 1.7;
    padding-left: 1.25rem;
    position: relative;
}

.privacy-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}

.privacy-section ul li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.privacy-section a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.privacy-section a:hover {
    color: var(--orange-dark);
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.privacy-table th,
.privacy-table td {
    padding: 0.7rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
    line-height: 1.6;
}

.privacy-table th {
    background: var(--gray-bg);
    color: var(--navy);
    font-weight: 600;
    width: 35%;
    vertical-align: top;
}

.privacy-table td {
    color: var(--gray);
}

.privacy-table thead th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    width: auto;
    vertical-align: middle;
}

.privacy-table tbody th {
    width: 35%;
    vertical-align: top;
}

.privacy-table code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    background: var(--gray-bg);
    color: var(--navy);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    white-space: nowrap;
}

.privacy-contact-email {
    background: var(--gray-bg);
    padding: 0.9rem 1.25rem;
    border-left: 3px solid var(--orange);
    font-weight: 600;
    margin: 1rem 0;
}

.privacy-back {
    margin-top: 2.5rem;
    text-align: center;
}

.privacy-back .cta-primary {
    display: inline-flex;
}

@media (max-width: 768px) {
    .privacy-container {
        padding: 2rem 1.25rem 3rem;
    }
    .privacy-section {
        padding: 1.75rem 1.25rem;
    }
    .privacy-table th {
        width: auto;
    }
    .privacy-table th,
    .privacy-table td {
        display: block;
        width: 100%;
    }
    .privacy-table th {
        border-bottom: none;
    }
    .privacy-table thead {
        display: none;
    }
    .privacy-table tbody td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--navy);
    }
}

/* ─── Utility ────────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
