/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: rgb(132, 51, 41);
    --primary-dark: rgb(100, 38, 30);
    --primary-light: rgb(160, 62, 50);
    --blue-color: #151E3F;
    --blue-dark: #0e1428;
    --blue-light: #1e2d5c;
    --secondary-color: #DCCCA3;
    --accent-color: #DCCCA3;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

strong, b {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 500;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.reg-disclaimer {
    display: block;
    margin: 10px 0;
    padding: 8px 14px;
    background: rgba(201, 169, 97, 0.12);
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 0.92rem;
    font-style: normal;
    color: var(--text-dark);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #843329;
    box-shadow: none;
    z-index: 1000;
    transition: var(--transition);
    overflow: visible;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 0;
    overflow: visible;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.75rem;
    height: 68px;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: visible;
    height: 100%;
}

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

.logo-text {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    font-weight: 700;
    white-space: nowrap;
}

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

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #DCCCA3;
    transition: var(--transition);
    pointer-events: none;
}

.nav-link:hover,
.nav-link.active {
    color: #DCCCA3;
}

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

.btn-cta {
    background: #151E3F;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-cta:hover {
    background: #0e1428;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-left: auto;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0.2rem 0.3rem;
    transition: var(--transition);
    opacity: 0.75;
    transform: scale(0.9);
    color: #ffffff;
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* RTL support for Arabic */
[dir="rtl"] .nav-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-features {
    direction: rtl;
}

[dir="rtl"] .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

[dir="rtl"] .contact-grid {
    direction: rtl;
}

[dir="rtl"] .contact-info-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .footer-links,
[dir="rtl"] .footer-contact {
    text-align: right;
}

[dir="rtl"] .services-grid,
[dir="rtl"] .services-detail-grid,
[dir="rtl"] .services-process-grid {
    direction: rtl;
}

[dir="rtl"] .service-detail-list {
    padding-right: 1rem;
    padding-left: 0;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .team-members-grid {
    direction: rtl;
}

[dir="rtl"] .team-member-info {
    text-align: right;
}

[dir="rtl"] .team-member-tags {
    padding-right: 0;
    justify-content: flex-end;
}

[dir="rtl"] .extranjeria-content {
    direction: rtl;
}

[dir="rtl"] .extranjeria-list {
    padding-right: 1.5rem;
    padding-left: 0;
    text-align: right;
}

[dir="rtl"] .campaign-steps {
    padding-right: 1.5rem;
    padding-left: 0;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .campaign-features {
    padding-right: 1.5rem;
    padding-left: 0;
    text-align: right;
}

[dir="rtl"] .section-header,
[dir="rtl"] .section-title,
[dir="rtl"] .section-description,
[dir="rtl"] .section-tag {
    text-align: right;
}

[dir="rtl"] .contact-form .form-group {
    text-align: right;
}

[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form select,
[dir="rtl"] .contact-form textarea {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .regularizacion-banner-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .regularizacion-banner-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .value-card {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .legal-card {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .campaign-content {
    direction: rtl;
}

[dir="rtl"] .services-intro {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .services-cta {
    direction: rtl;
    text-align: center;
}

/* Subrayado de nav-link: debe arrancar desde la derecha en RTL */
[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

/* Bullet de listas extranjería: debe estar a la derecha en RTL */
[dir="rtl"] .extranjeria-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .extranjeria-list li::before {
    right: 0;
    left: auto;
}

/* Hover de tarjetas legales: mover hacia la izquierda en RTL */
[dir="rtl"] .legal-card:hover {
    transform: translateX(-5px);
}

/* Hover de enlaces del footer: padding en el lado correcto */
[dir="rtl"] .footer-links a:hover {
    padding-right: 5px;
    padding-left: 0;
}

/* Footer contact: icono a la derecha, texto a la izquierda en RTL */
[dir="rtl"] .footer-contact li {
    flex-direction: row-reverse;
}

/* Teléfonos y emails siempre en LTR aunque la página esté en RTL */
[dir="rtl"] .team-member-phone,
[dir="rtl"] .team-member-email {
    direction: ltr;
    text-align: center;
}

[dir="rtl"] .contact-info-text a,
[dir="rtl"] .footer-contact a {
    direction: ltr;
    unicode-bidi: embed;
}

[dir="rtl"] .footer-contact a {
    flex-direction: row-reverse;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-secondary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.btn-secondary:active {
    transform: translateY(1px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Hero & About Section - Unified */
.hero-about {
    margin-top: 68px;
    background: var(--bg-white);
}

/* Hero Top Section - Pantone Brand Redesign */
.hero-top {
    position: relative;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    background: #843329;
    overflow: hidden;
}

.hero-top > .container {
    width: 100%;
}

.hero-pattern {
    position: absolute;
    inset: -12px;
    z-index: 0;
    background-image: url('../img/Personal/Header_page.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(2px);
}

.hero-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
}

.hero-shapes {
    display: none;
}

.hero-top::before {
    display: none;
}

.shape, .shape-1, .shape-2, .shape-3 {
    display: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    color: var(--bg-white);
    max-width: 1350px;
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
}

.hero-main-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.hero-main-content .hero-subtitle {
    margin-bottom: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-icon {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    color: rgba(255, 255, 255, 0.95);
}

.badge-year {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Poppins', 'Open Sans', sans-serif;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: 700;
}

.hero-title .title-line {
    display: block;
    background: linear-gradient(135deg, #b84535 0%, #d95a4a 50%, #b84535 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px rgba(184, 69, 53, 0.4));
    position: relative;
}

.hero-title .title-line::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b84535, #d95a4a, #b84535, transparent);
    opacity: 0.85;
    box-shadow: 0 0 6px rgba(184, 69, 53, 0.5);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #d4af37 0%, #e6c866 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, #e6c866, #d4af37, transparent);
    opacity: 0.85;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}


.hero-subtitle {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.05rem, 1.3vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.97);
    animation: fadeInUp 1s ease 0.3s both;
    font-weight: 400;
    max-width: 100%;
    text-align: center;
    overflow-wrap: break-word;
}

.hero-actions {
    position: absolute;
    bottom: 9vh;
    left: 0;
    right: 0;
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-actions .btn-primary {
    background: #843329;
    color: #DCCCA3;
    border: 1.5px solid #843329;
    letter-spacing: 0.05em;
}

.hero-actions .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #DCCCA3;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn-outline {
    background: transparent;
    color: #DCCCA3;
    border: 1.5px solid #DCCCA3;
    backdrop-filter: none;
}

.hero-actions .btn-outline:hover {
    background: rgba(220, 204, 163, 0.15);
    border-color: #DCCCA3;
    color: #DCCCA3;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1.25rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: fit-content;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'DM Serif Display', serif;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Portrait Section */
.hero-portrait {
    padding: 5rem 0;
    background: linear-gradient(160deg, #faf7f2 0%, #f3ede3 100%);
    position: relative;
}

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

.portrait-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.portrait-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.15;
    color: var(--blue-color);
    margin-bottom: 1.5rem;
}

.portrait-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 2rem;
}

.portrait-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.portrait-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero Video (Inicio) */
.hero-video {
    padding: 2rem 0 0;
    background: var(--bg-white);
}

.hero-video-inner {
    position: relative;
    max-width: 980px; /* Igual que el about-card */
    margin: 0 auto;
    border-radius: 20px; /* Coincide con el about-card */
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-video-inner::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

.hero-video-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.about-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.5rem 2.75rem 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ee 40%, #f7f1e7 100%);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.35);
    text-align: center;
}

.about-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.about-card-img {
    max-width: 400px;
    width: 90%;
    height: auto;
    object-fit: contain;
}

.about-card-text {
    max-width: 780px;
    margin: 0 auto;
}

.about-text-content {
    animation: fadeInLeft 1s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    padding: 1.75rem 0 0;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 1.5rem 1.6rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
    min-height: 150px;
    text-align: center;
}

.feature-item:hover {
    background: rgba(132, 51, 41, 0.05);
    transform: translateY(-4px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    flex-shrink: 0;
}

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

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.about-image-content {
    display: none;
}

.about-image-content .image-wrapper {
    position: relative;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition);
    max-width: 320px;
    aspect-ratio: 1/1;
    background: radial-gradient(circle at 30% 0, rgba(201, 169, 97, 0.25), transparent 55%),
                radial-gradient(circle at 70% 100%, rgba(132, 51, 41, 0.3), transparent 60%),
                #f5efe6;
}

.about-image-content .image-wrapper:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.about-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
    margin: 10% auto;
    transition: var(--transition);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.4) 0%, transparent 55%),
                radial-gradient(circle at 80% 100%, rgba(132, 51, 41, 0.45) 0%, transparent 60%);
    pointer-events: none;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Services Section */
.services-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: var(--bg-white);
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

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

.service-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Servicios - Desarrollo completo */
.services-intro {
    max-width: 800px;
    margin: 3rem auto 2rem;
    text-align: center;
}

.services-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.services-intro p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.regularizacion-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    max-width: 360px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--bg-white);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    padding: 1.2rem 1.4rem 1.25rem;
    z-index: 1200;
    animation: regularizacionSlideUp 0.4s ease-out;
}

.regularizacion-banner.hidden {
    display: none;
}

.regularizacion-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.regularizacion-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
}

.regularizacion-banner-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.regularizacion-banner p {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.regularizacion-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.regularizacion-banner-btn:hover {
    background: #f5f5f5;
}

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

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.service-detail-card {
    background: var(--bg-white);
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.service-detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
    color: var(--primary-color);
}

.service-detail-lead {
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    margin-bottom: 0.65rem;
}

.service-detail-card > p {
    color: var(--text-light);
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}

.service-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.service-detail-list h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.service-detail-list p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.services-process {
    margin-top: 3.5rem;
}

.services-process-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.services-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.process-step {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.process-step p {
    font-size: 0.96rem;
    color: var(--text-light);
}

.services-cta {
    margin-top: 3rem;
    text-align: center;
}

.services-video {
    margin-top: 3rem;
    text-align: center;
}

.services-video-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.services-video-inner::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

.services-video-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.services-video-caption {
    margin-top: 0.75rem;
    font-size: 0.98rem;
    color: var(--text-light);
}

.services-cta h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.services-cta p {
    max-width: 650px;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
}

/* Campaign Section */
.campaign-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--blue-color) 0%, var(--blue-dark) 100%);
    color: var(--bg-white);
}

.campaign-section .section-tag {
    color: var(--secondary-color);
}

.campaign-section .section-title,
.campaign-section .section-description {
    color: var(--bg-white);
}

.campaign-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.campaign-text {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 18px;
    padding: 2.25rem 2.5rem 2.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.campaign-description {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 650px;
}

.campaign-text .btn-primary {
    display: block;
    margin: 2rem auto 0;
    padding: 1rem 2.75rem;
    background: var(--secondary-color);
    color: var(--blue-dark);
}

.campaign-text .btn-primary:hover {
    background: var(--accent-color);
    color: var(--blue-dark);
}

.campaign-block {
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.campaign-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 0.35rem;
}

.campaign-steps {
    margin: 2rem 0 2.5rem;
    padding-left: 1.25rem;
    font-size: 0.98rem;
    line-height: 1.7;
}

.campaign-steps li {
    margin-bottom: 0.75rem;
}

.campaign-steps strong {
    color: var(--secondary-color);
}

.campaign-conditions h4 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--secondary-color);
}

.campaign-conditions ul {
    margin-left: 1.25rem;
    padding-left: 0;
    font-size: 0.96rem;
    line-height: 1.7;
}

.campaign-conditions ul li {
    margin-bottom: 0.6rem;
}

.campaign-conditions p {
    font-size: 0.96rem;
    line-height: 1.7;
}

.campaign-features {
    list-style: none;
    margin: 2rem 0;
}

.campaign-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.campaign-features svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.campaign-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.75rem;
}

.campaign-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.campaign-video {
    width: 100%;
}

.campaign-video-inner {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.campaign-video-inner::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

.campaign-video-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.campaign-video-caption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.campaign-video-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--secondary-color);
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.campaign-video-link:hover {
    text-decoration: underline;
}

.campaign-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-icon-large svg {
    width: 50px;
    height: 50px;
    color: var(--bg-white);
}

.campaign-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.campaign-prices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.campaign-price-group h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 0.25rem;
}

.campaign-price-item {
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 0.35rem;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

.price-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.15rem;
}

.campaign-legal-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.campaign-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--bg-white);
}

.campaign-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Tarifas Declaración de la Renta */
.renta-tarifas {
    margin-top: 4rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.renta-tarifas-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.renta-tarifas-title {
    font-size: 2rem;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.renta-tarifas-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

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

.renta-price-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.renta-price-card:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(201, 169, 97, 0.5);
}

.renta-price-card--highlight {
    border-color: rgba(201, 169, 97, 0.6);
    background: rgba(201, 169, 97, 0.1);
}

.renta-price-card--custom {
    border-style: dashed;
}

.renta-price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.renta-price-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.renta-price-icon svg {
    width: 26px;
    height: 26px;
    color: var(--secondary-color);
}

.renta-price-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    font-family: 'Poppins', 'Open Sans', sans-serif;
}

.renta-price-advisory {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.renta-price-advisory svg {
    flex-shrink: 0;
    color: var(--secondary-color);
}

.renta-price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'DM Serif Display', serif;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.renta-price-amount--custom {
    font-size: 1.35rem;
    line-height: 1.3;
    text-align: center;
}

.renta-price-iva {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.renta-price-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.6rem;
    margin-top: 0.2rem;
    font-style: italic;
}

/* Revisión de datos fiscales */
.renta-revision {
    margin: 1.5rem 0;
}

.renta-revision-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.4rem 1.75rem;
}

.renta-revision-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.renta-revision-icon svg {
    width: 22px;
    height: 22px;
    color: var(--secondary-color);
}

.renta-revision-text {
    flex: 1;
}

.renta-revision-text h4 {
    font-size: 1rem;
    color: var(--bg-white);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 700;
}

.renta-revision-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.renta-revision-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}

.renta-revision-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'DM Serif Display', serif;
}

.renta-revision-iva {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: right;
}

/* Nota especial */
.renta-special-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-style: italic;
    margin: 1.75rem auto;
    max-width: 780px;
    line-height: 1.7;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--secondary-color);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 10px 10px 0;
    text-align: left;
}

/* Qué incluye */
.renta-includes {
    margin-top: 2.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.renta-includes-title {
    font-size: 1.15rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

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

.renta-includes-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.renta-includes-item svg {
    width: 16px;
    height: 16px;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.renta-includes-item strong {
    color: var(--secondary-color);
}

/* Aviso de pago */
.renta-payment-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.renta-payment-notice svg {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.renta-payment-notice p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
}

.renta-payment-notice strong {
    color: var(--bg-white);
}

/* Responsive Tarifas Renta */
@media (max-width: 968px) {
    .renta-prices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .renta-includes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .renta-revision-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .renta-revision-price {
        align-items: center;
    }

    .renta-revision-iva {
        text-align: center;
    }

    .renta-tarifas-title {
        font-size: 1.6rem;
    }

    .renta-includes {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .renta-prices-grid {
        grid-template-columns: 1fr;
    }

    .renta-price-card {
        padding: 1.5rem 1.25rem;
    }

    .renta-includes {
        padding: 1.25rem 1rem;
    }

    .renta-payment-notice {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Extranjería Section */
.extranjeria-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.extranjeria-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.extranjeria-card {
    background: var(--bg-light);
    border-radius: 18px;
    padding: 2.25rem 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.extranjeria-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.extranjeria-card h4 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-dark);
}

.extranjeria-card p {
    margin-bottom: 0.75rem;
}

.extranjeria-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.extranjeria-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.extranjeria-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.extranjeria-highlight {
    font-weight: 600;
    color: var(--secondary-color);
}

.extranjeria-cta {
    margin-top: 1.5rem;
    font-weight: 500;
    color: var(--primary-dark);
}

/* Team Section */
.team-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f1f3f8 0%, #e2e5f0 100%);
}

.team-members {
    margin-top: 3rem;
    padding: 3rem 2.5rem 3.25rem;
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.team-members-title {
    text-align: center;
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-members-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 999px;
    margin: 0.75rem auto 1.75rem;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.team-member-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.75rem 1.5rem 1.9rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.team-member-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(201, 169, 97, 0.16), transparent 55%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.team-member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 97, 0.6);
}

.team-member-card:hover::before {
    opacity: 1;
}

.team-member-photo {
    width: 180px;
    height: 180px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%;
    display: block;
    transition: transform 0.4s ease;
}

.team-member-card:hover .team-member-photo,
.team-member-photo:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.veronica-photo img {
    object-position: center top;
}

.elena-photo img {
    /* Ajuste fino para centrar mejor a Elena dentro del círculo */
    object-position: 40% 20%;
}

.team-member-info {
    padding: 0;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.55;
}

.team-member-name {
    font-size: 1.08rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: var(--primary-color);
    font-weight: 700;
}

.team-member-position {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.team-member-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.team-member-tags li {
    font-size: 0.78rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(212, 175, 55, 0.18));
    border: 1px solid rgba(201, 169, 97, 0.6);
    color: var(--primary-dark);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(2px);
    transition: var(--transition);
}

.team-member-tags li:hover {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.18), rgba(212, 175, 55, 0.26));
    border-color: rgba(201, 169, 97, 0.9);
    transform: translateY(-1px);
}

.team-member-phone,
.team-member-email {
    font-size: 0.9rem;
    color: #000000;
    margin: 0.1rem 0;
}

.team-member-phone a,
.team-member-email a {
    display: inline-block;
    padding: 0.4rem 0;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

.team-member-phone a:hover,
.team-member-email a:hover {
    color: var(--primary-dark);
}

.team-image {
    margin: 3rem 0;
    text-align: center;
}

.team-photo {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.team-portrait {
    margin: 3rem 0;
    align-items: stretch;
}

.team-portrait-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.team-quote {
    margin: 0;
    padding: 0 0 0 1.75rem;
    border-left: 3px solid var(--secondary-color);
}

.team-quote p {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.05rem, 1.55vw, 1.28rem);
    line-height: 1.75;
    color: var(--blue-color);
    font-style: italic;
    margin: 0;
}

.team-video-inner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.team-video-inner::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.team-video-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-video {
    margin-top: 1.5rem;
}

.team-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    text-align: center;
    padding: 1rem 1.25rem 1.1rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.6rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.value-icon svg {
    width: 40px;
    height: 40px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.team-success {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-success-card {
    text-align: left;
}

/* Legal Section */
.legal-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.legal-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.legal-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.legal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--primary-dark);
    margin-left: 5px;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--blue-color) 0%, var(--blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(201, 169, 97, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.contact-header {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.contact-header .section-tag {
    color: var(--secondary-color);
}

.contact-header .section-title {
    color: var(--bg-white);
}

.contact-header .section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Grid principal de contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Tarjeta de información de contacto */
.contact-info-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    color: var(--bg-white);
    position: relative;
    z-index: 1;
}

.contact-info-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
}

.contact-logo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.75rem;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.contact-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-info-header h3 {
    font-size: 1.25rem;
    color: var(--bg-white);
    margin-bottom: 0.25rem;
}

.contact-info-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.contact-info-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 14px;
    height: 14px;
    color: var(--primary-dark);
}


.contact-info-text h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-info-text p,
.contact-info-text a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    line-height: 1.5;
}

.contact-info-text a {
    display: block;
    padding: 0.5rem 0;
}

.contact-info-text a:hover {
    color: var(--secondary-color);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-social-link {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition);
}

.contact-social-link:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-social-link svg {
    width: 14px;
    height: 14px;
}

/* Tarjeta del formulario */
.contact-form-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form-header h3 {
    font-size: 1.5rem;
    color: var(--blue-color);
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-white);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(132, 51, 41, 0.1);
}

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

.contact-form .btn-primary {
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    background: var(--blue-color);
}

.contact-form .btn-primary:hover {
    background: var(--blue-dark);
}

/* Tarjeta de medios (mapa y vídeos) */
.contact-media-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.contact-map-block,
.contact-video-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-map-block h4,
.contact-video-block h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-color);
    margin-bottom: 0.65rem;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

/* Mapa: ocupa todo el espacio disponible en el bloque */
.contact-map-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 180px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Vídeos: apilados verticalmente, ocupan todo el espacio disponible */
.contact-videos-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.contact-video-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.contact-map-wrapper iframe,
.contact-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    padding: 0.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-logo h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 1.25rem;
    min-height: 44px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.footer-contact li.footer-whatsapp svg {
    color: var(--secondary-color);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.3rem 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    min-height: 44px;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal-links {
    margin-top: 15px;
    text-align: center;
}

.footer-legal-link {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-legal-link:hover {
    text-decoration: underline;
}

.footer-legal-sep {
    color: #ccc;
}

.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;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        background: #843329;
        flex-direction: column;
        padding: 0.5rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1300;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .nav-link {
        display: block;
        font-size: 1rem;
        padding: 0.875rem 0.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-self: stretch;
        padding: 0 0.875rem;
    }

    .btn-cta {
        display: none;
    }

    .nav-wrapper {
        gap: 0.75rem;
    }

    .lang-switcher {
        gap: 0.15rem;
    }

    .lang-btn {
        font-size: 1.2rem;
        padding: 0.35rem 0.45rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-top {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        white-space: normal;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

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

    .about-content-grid,
    .campaign-content,
    .extranjeria-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info-card {
        order: 2;
    }

    .contact-form-card {
        order: 1;
    }

    .contact-media-card {
        order: 3;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .portrait-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .portrait-image-wrap {
        order: -1;
    }

    .hero-portrait {
        padding: 3.5rem 0;
    }

    /* Tablet: 2 columnas para grillas de servicios y valores */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .regularizacion-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    /* Menú móvil RTL: desliza desde la derecha, ítems en columna desde arriba */
    [dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    [dir="rtl"] .nav-menu.active {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .nav-menu .nav-link {
        text-align: right;
        width: 100%;
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-top > .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .hero-content-wrapper {
        padding: 1rem 0;
    }

    .hero-actions {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .about-features {
        padding: 1.5rem 0;
    }

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

    .contact-form-card {
        padding: 2rem 1.5rem;
    }

    /* Prevenir zoom automático de iOS Safari en inputs con font-size < 16px */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
    }

    .contact-media-card {
        flex-direction: column;
    }

    .team-members {
        padding: 2.5rem 1.75rem 3rem;
    }

    .team-members-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .team-member-card {
        padding: 1.5rem 1.25rem 1.7rem;
    }

    .team-member-photo {
        width: 150px;
        height: 150px;
    }

    .campaign-text {
        padding: 1.75rem 1.5rem 2rem;
    }

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

    .extranjeria-card {
        padding: 1.75rem 1.5rem;
    }

    .about-card {
        padding: 2rem 1.75rem 2.5rem;
    }

    /* Servicios y valores: 1 columna en móvil */
    .services-grid,
    .team-values {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Espacio extra al final del footer para que los enlaces
       siempre se puedan scrollear por encima del botón WA fijo y del banner */
    .footer {
        padding-bottom: 16rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-pattern {
        background-attachment: scroll;
    }

    .hero-top {
        padding: 2.5rem 0 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

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

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .hero-stats {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }


    .about-content-grid {
        gap: 2rem;
    }

    .about-features {
        gap: 1rem;
        padding: 1rem 0;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

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

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .team-members {
        padding: 2.25rem 1.25rem 2.75rem;
    }

    .team-members-grid {
        grid-template-columns: 1fr;
        row-gap: 1.75rem;
    }

    .team-member-card {
        padding: 1.4rem 1.1rem 1.6rem;
    }

    .team-member-photo {
        width: 130px;
        height: 130px;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .contact-form-card {
        padding: 1.5rem 1.25rem;
    }

    .contact-logo-icon {
        width: 32px;
        height: 32px;
    }

    .contact-info-icon svg {
        width: 16px;
        height: 16px;
    }

    .about-card {
        padding: 1.75rem 1.25rem 2rem;
    }

    .campaign-text {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .campaign-card {
        padding: 1.75rem 1.25rem;
    }

    .extranjeria-card {
        padding: 1.5rem 1.25rem;
    }

    /* Forzar 1 columna en grillas de detalle para evitar desbordamiento */
    .services-detail-grid,
    .services-process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .logo-text {
        display: none;
    }

    .nav-wrapper {
        gap: 0.4rem;
    }

    .logo-img {
        height: 70px;
    }

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

    .hero-stats {
        padding: 1rem;
    }
}

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

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

/* =====================
   Service Card Link (clickable wrapper)
   ===================== */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card-link .service-card {
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.service-card-link:hover .service-card-more {
    color: var(--secondary-color);
    transform: translateX(4px);
}

/* =====================
   Page Hero (servicios.html)
   ===================== */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6b2018 100%);
    padding: 7rem 0 4rem;
    overflow: hidden;
}

.page-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span[aria-hidden] {
    color: rgba(255, 255, 255, 0.4);
}

.page-hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 700px;
}

.page-hero-description {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.services-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.services-nav-link {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(4px);
}

.services-nav-link:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* =====================
   Servicios Detalle Section (servicios.html)
   ===================== */
.servicios-detalle-section {
    padding: 3.5rem 0 4.5rem;
    background: var(--bg-light);
}

.servicios-detalle-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.servicios-detalle-grid .service-detail-card {
    scroll-margin-top: 90px;
    position: relative;
}

.service-detail-cta {
    margin-top: 1.25rem;
    display: inline-block;
    background: var(--blue-color);
}

.service-detail-cta:hover {
    background: var(--blue-dark);
}

/* Responsive page hero */
@media (max-width: 768px) {
    .page-hero {
        padding: 6rem 0 3rem;
    }

    .page-hero-title {
        font-size: 1.6rem;
    }

    .services-nav {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .services-nav-link {
        font-size: 0.78rem;
        padding: 0.4rem 0.8rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Ocultar WA widget cuando el menú móvil está abierto */
body.menu-open .wa-widget {
    visibility: hidden;
    pointer-events: none;
}

/* Eliminar tap delay en Android */
a, button, .nav-link, .wa-fab, .mobile-menu-toggle {
    touch-action: manipulation;
}

/* ===== Widget flotante WhatsApp ===== */
.wa-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    /* El contenedor no debe interceptar clics en el área del popup oculto */
    pointer-events: none;
}

/* FAB (botón circular) */
.wa-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    pointer-events: auto; /* El FAB sí debe recibir clics */
}

.wa-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

/* Intercambio de iconos WA ↔ X */
.wa-fab-icon { transition: opacity 0.2s ease, transform 0.2s ease; }
.wa-fab-icon--close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.wa-fab--open .wa-fab-icon--wa   { opacity: 0; transform: rotate(90deg); }
.wa-fab--open .wa-fab-icon--close { opacity: 1; transform: rotate(0); }

/* Popup */
.wa-popup {
    width: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    transform-origin: bottom right;
}

.wa-popup--open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

/* Cabecera */
.wa-popup-header {
    background: #091d2e;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-popup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
}

.wa-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wa-popup-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wa-popup-info strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.wa-popup-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.wa-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.wa-popup-close:hover { opacity: 1; }

/* Zona del mensaje burbuja */
.wa-popup-body {
    background: #ece5dd;
    padding: 16px;
}

.wa-bubble {
    background: #fff;
    border-radius: 0 10px 10px 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: inline-block;
    max-width: 90%;
}

/* Footer con textarea + botón enviar */
.wa-popup-footer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
}

.wa-input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-family: inherit;
    resize: none;
    outline: none;
    background: #fff;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}

.wa-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #091d2e;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.wa-send:hover { background: #0f2f4a; }

/* Ajustes móvil */
@media (max-width: 480px) {
    .wa-widget {
        bottom: 16px;
        right: 12px;
    }

    .wa-popup {
        width: min(320px, calc(100vw - 48px));
    }
}



/* FAQ styles */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 780px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item[open] {
    box-shadow: 0 4px 20px rgba(132,51,41,0.12);
    border-color: rgba(132,51,41,0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-question {
    color: var(--primary-color);
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 0;
}

/* =============================================
   Google Review CTA — Pill header + Floating btn
   ============================================= */

.review-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--accent-color);
    color: #1b2d4f;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}
.review-cta-pill:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.5);
    color: #1b2d4f;
}
.review-cta-pill:active { transform: translateY(0); }
@media (max-width: 968px) {
    .review-cta-pill { padding: 0.3rem 0.6rem; font-size: 0.72rem; gap: 0.25rem; }
}
@media (max-width: 380px) {
    .review-cta-pill span { display: none; }
    .review-cta-pill { padding: 0.35rem 0.45rem; }
}
[dir="rtl"] .review-cta-pill { direction: ltr; }

.floating-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--accent-color);
    color: #1b2d4f;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.45);
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.floating-review-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.55);
    color: #1b2d4f;
}
@media (max-width: 480px) {
    .floating-review-btn span { display: none; }
    .floating-review-btn { padding: 0.55rem 0.6rem; border-radius: 50%; }
}

/* =============================================
   Página /valoracion.html
   ============================================= */

.valoracion-main {
    padding: 5rem 0;
    background: var(--bg-light);
}

.valoracion-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.valoracion-google-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valoracion-lead {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}

.valoracion-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #1b2d4f;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.valoracion-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.55);
    color: #1b2d4f;
}

.valoracion-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0;
    font-style: italic;
}

.valoracion-why {
    padding: 5rem 0;
    background: var(--bg-white);
}
.valoracion-why .about-features {
    margin-top: 2.5rem;
    justify-content: center;
}

.valoracion-testimonials {
    padding: 5rem 0;
    background: var(--bg-light);
    text-align: center;
}

.valoracion-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.valoracion-rating-stars {
    color: var(--accent-color);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.valoracion-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.valoracion-review-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.valoracion-review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.valoracion-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.valoracion-review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.valoracion-review-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.valoracion-review-stars {
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.valoracion-review-text {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.65;
    font-style: italic;
    margin: 0;
}

.valoracion-cta {
    background: var(--blue-color);
    padding: 4rem 0;
    text-align: center;
}
.valoracion-cta h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2vw + 1rem, 2rem);
    margin-bottom: 0.75rem;
}
.valoracion-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
    .valoracion-card { padding: 2rem 1.5rem; }
    .valoracion-reviews-grid { grid-template-columns: 1fr; }
    .valoracion-btn { font-size: 1rem; padding: 0.875rem 2rem; }
}

@media (max-width: 480px) {
    .valoracion-main { padding: 3rem 0; }
    .valoracion-why,
    .valoracion-testimonials { padding: 3rem 0; }
}
