/* Estilos para validación de formulario */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
    animation: fadeInUp 0.3s ease;
}

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form input.error:focus,
.contact-form select.error:focus,
.contact-form textarea.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.contact-form button[type="submit"]:disabled:hover {
    transform: none !important;
    background-color: #000080 !important;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000080;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Animaciones de scroll mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

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

@keyframes glowIn {
    from {
        opacity: 0;
        transform: scale(0.95);
        filter: brightness(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Clases de animación mejoradas */
.animate-fadeInUp {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scaleIn {
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slideInFromTop {
    animation: slideInFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-glowIn {
    animation: glowIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Delays para animaciones escalonadas mejorados */
.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.3s;
}

.animate-delay-3 {
    animation-delay: 0.5s;
}

.animate-delay-4 {
    animation-delay: 0.7s;
}

.animate-delay-5 {
    animation-delay: 0.9s;
}

.animate-delay-6 {
    animation-delay: 1.1s;
}

.animate-delay-7 {
    animation-delay: 1.3s;
}

.animate-delay-8 {
    animation-delay: 1.5s;
}

/* Efectos adicionales para el header */
.hero-content h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
}

.hero-content h1.animate-on-load.visible {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-image img {
    filter: brightness(0.9) saturate(0.8);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image img.animate-on-load.visible {
    filter: brightness(1) saturate(1);
    transform: scale(1.05);
}

/* Estado inicial para animaciones de scroll */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-animate.fade-in-up {
    transform: translateY(30px);
}

.scroll-animate.fade-in-left {
    transform: translateX(-30px);
}

.scroll-animate.fade-in-right {
    transform: translateX(30px);
}

.scroll-animate.scale-in {
    transform: scale(0.95);
}

/* Estado visible */
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Estado inicial para animaciones de carga */
.animate-on-load {
    opacity: 0;
}

html {
    scroll-behavior: smooth;
}

/* Estilos Globales y Reset Básico */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    font-size: 15px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

h1,
h2,
h3,
h4 {
    font-family: 'EB Garamond', serif;
    margin: 0 0 10px 0;
}

h2 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #fff;
    color: #000080;
    /* Azul oscuro */
    border: none;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-submit {
    background-color: #fff;
    color: #000080;
    border: none;
    width: 100%;
    margin-top: 15px;
}

/* 1. Encabezado / Banner Principal */
.hero-section {
    display: flex;
    min-height: 700px;
    position: relative;
    color: #fff;
}

/* Top Bar Styles */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    /* Split layout */
    transition: all 0.3s ease;
}

.top-bar.sticky {
    position: fixed;
    background-color: #000080;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    height: 60px;
}

.top-bar.sticky .top-bar-left {
    padding: 0 20px;
}

.top-bar.sticky .top-bar-right {
    padding: 0 20px;
}

.top-bar.sticky .logo-img {
    height: 30px;
}

.top-bar.sticky .nav-links a {
    color: #fff;
    font-size: 0.85rem;
}

.top-bar.sticky .nav-links a:hover {
    color: #fff;
    opacity: 0.8;
}

.top-bar.sticky .nav-links a.active {
    color: #fff;
    opacity: 1;
}

.top-bar.sticky .nav-links a.active::after {
    background-color: #fff;
}

.top-bar.sticky .mobile-menu-toggle {
    width: 28px;
    height: 22px;
}

.top-bar.sticky .hamburger-line {
    height: 2.5px;
}

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

.top-bar-left {
    flex: 1;
    padding: 40px 60px;
    display: flex;
    align-items: center;
}

.top-bar-right {
    flex: 1;
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-bar .logo {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    display: block;
}

.top-bar .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.top-bar .menu-items {
    display: flex;
    gap: 20px;
}

.top-bar .nav-links a {
    color: #333;
    /* Dark text on Image Bg */
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lang-flag {
    display: block;
    width: 26px;
    /* Define fixed size */
    height: 26px;
    border-radius: 50%;
    /* Circle */
    overflow: hidden;
    /* Crop image */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    /* Optional ring effect */
    flex-shrink: 0;
}

.lang-flag img {
    width: 100% !important;
    /* Force width */
    height: 100% !important;
    /* Force height */
    object-fit: cover;
    /* Cover container */
    display: block;
}

.top-bar .nav-links a:hover {
    opacity: 1;
    color: #000080;
}

.top-bar .nav-links a.active {
    opacity: 1;
    color: #000080;
    font-weight: bold;
    position: relative;
}

.top-bar .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #000080;
    border-radius: 2px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:hover .hamburger-line {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(11.5px) rotate(45deg);
    width: 28px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-11.5px) rotate(-45deg);
    width: 28px;
}

.hero-content {
    flex: 1;
    /* background-color: #000080; */
    /* background-image: linear-gradient(rgba(0, 0, 128, 0.9), rgba(0, 0, 128, 0.9)), url('../images/fd-header-l.webp'); */
    background-image: url('../images/fd-header-l.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 180px 60px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: padding-top 0.3s ease;
}

.top-bar.sticky ~ .hero-content {
    padding-top: 200px;
}

.hero-content h1 {
    font-family: 'EB Garamond', serif;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-content p:nth-of-type(1) {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
    max-width: 650px;
    font-weight: 300;
}

.hero-content p:nth-of-type(2) {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 30px;
    opacity: 1;
    font-weight: 400;
}

.hero-buttons {
    margin-top: 25px;
    margin-bottom: 50px;
    display: flex;
    gap: 15px;
}

.hero-content h1 {
    font-family: 'EB Garamond', serif;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-content p:nth-of-type(1) {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
    max-width: 650px;
    font-weight: 300;
}

.hero-content p:nth-of-type(2) {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 30px;
    opacity: 1;
    font-weight: 400;
}

.hero-buttons {
    margin-top: 25px;
    margin-bottom: 50px;
    display: flex;
    gap: 15px;
}

.btn-primary-hero {
    background-color: #fff;
    color: #000080;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    border: 2px solid #fff;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    margin: 0 5px;
}

.btn-primary-hero:hover {
    background-color: transparent;
    color: #fff;
}

.btn-primary-hero:hover .icon-circle {
    background-color: #fff;
    color: #000080;
}

/* Smaller version for phone button */
.btn-primary-hero.btn-phone {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.btn-primary-hero.btn-phone .icon-circle {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

/* Icon circle styles for hero buttons */
.btn-primary-hero .icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary-hero:hover .icon-circle {
    transform: scale(1.1);
}

.btn-secondary-hero {
    background-color: transparent;
    color: #fff;
    padding: 18px 40px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-secondary-hero:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-contact-info {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    margin-top: auto;
    /* Push to bottom if space permits */
}

.hero-contact-info .small-label {
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0.8;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.hero-contact-info .phone-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
}

.hero-image {
    flex: 1;
    background-image: url('../images/fd-header-r.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 110px 60px 0 60px;
    min-height: 100%;
}

.hero-image img {
    width: auto;
    max-width: 95%;
    max-height: calc(100vh - 110px);
    display: block;
    object-fit: contain;
    margin-bottom: 0;
}

/* 2. Áreas de Práctica */
.practice-areas {
    /* Padding handled by global section rule or specific override if needed */
    padding: 120px 0;
    text-align: center;
    background-color: #fff;
}

.practice-areas h2 {
    font-family: 'EB Garamond', serif;
    font-size: 2.2rem;
    color: #000080;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ... skipped intermediate rules ... */

/* 3. Por qué contratarnos? */
.why-us {
    padding: 120px 0;
    text-align: center;
    background-color: #fff;
    /* Clean white background for section */
}

/* ... skipped intermediate rules ... */

/* 4. Info/Contacto/Formulario */
.info-contact-section {
    background-color: #fff;
    padding: 120px 0;
}

.practice-areas h3 {
    font-family: 'EB Garamond', serif;
    font-size: 2.3rem;
    color: #0f1b4c;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.practice-areas .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #0f1b4c;
    margin-bottom: 70px;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.area-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 70px;
    position: relative;
}

.area-navigation .nav-item {
    padding: 16px 50px;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #e8ecef;
    color: #6c757d;
    border: none;
    box-shadow: none;
    letter-spacing: 0.02em;
    text-transform: none;
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.area-navigation .nav-item:first-child {
    border-radius: 8px 0 0 8px;
}

.area-navigation .nav-item:last-child {
    border-radius: 0 8px 8px 0;
}

.area-navigation .nav-active {
    background-color: #0f1b4c !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(15, 27, 76, 0.25);
    transform: translateY(-2px);
    font-weight: 700;
}

.practice-content-wrapper {
    display: flex;
    align-items: center;
    gap: 70px;
    text-align: left;
}

.practice-image {
    flex: 0 0 40%;
    padding: 15px;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.practice-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.practice-info {
    flex: 1;
}

.practice-info h4 {
    font-family: 'EB Garamond', serif;
    font-size: 2.2rem;
    color: #0f1b4c;
    margin-bottom: 35px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.practice-info p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 400;
}

.practice-buttons {
    margin-top: 35px;
    display: flex;
    gap: 20px;
}

.btn-primary-small,
.btn-outline-small {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.btn-primary-small {
    background-color: #0f1b4c;
    color: #fff;
    border: 2px solid #0f1b4c;
}

.btn-outline-small {
    background-color: transparent;
    color: #0f1b4c;
    border: 2px solid #0f1b4c;
}

.btn-outline-small:hover {
    background-color: #0f1b4c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 27, 76, 0.2);
}

.btn-primary-small:hover {
    background-color: transparent;
    color: #0f1b4c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 27, 76, 0.2);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Por qué contratarnos? */
.why-us {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
    /* Clean white background for section */
}

.why-us h3 {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    color: #000080;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-align: center;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.why-us .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #0f1b4c;
    margin-bottom: 70px;
    letter-spacing: 0.02em;
    opacity: 0.9;
    text-align: center;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.reason-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 100%;
    margin: 0 auto;
}

.reason-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid rgba(15, 27, 76, 0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(15, 27, 76, 0.08);
}

.reason-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 27, 76, 0.15);
    border-color: rgba(15, 27, 76, 0.2);
}

.reason-icon {
    flex: 0 0 80px;
    font-size: 3rem;
    color: #000080;
    margin-right: 35px;
    text-align: center;
    padding-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-icon i {
    border: none;
    width: auto;
    height: auto;
    line-height: 1;
    border-radius: 0;
    display: block;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.reason-text h4 {
    color: #000080;
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.reason-text p {
    color: #0f1b4c;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* 4. Info/Contacto/Formulario */
.info-contact-section {
    background-color: #fff;
    padding: 60px 0;
}

.footer-grid {
    display: flex;
    gap: 30px;
}

.info-box,
.contact-box {
    flex: 1;
    padding: 50px;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.info-box {
    background-color: rgba(0, 0, 128, 0.9);
    flex: 1;
    max-width: 480px;
}

.contact-box {
    background-color: rgba(0, 0, 128, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    max-width: 720px;
}

.info-box h4,
.contact-box h4 {
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.info-box p {
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Checklist Styles */
.contact-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.contact-checklist li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    font-size: 1rem;
}

.check-icon {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Form Styles */
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    transition: all 0.3s;
}

.contact-form select {
    background-color: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
    cursor: pointer;
}

.contact-form textarea {
    resize: none;
    min-height: 140px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-row input {
    width: 100%;
}

.btn-submit {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #2c3e50;
    border: none;
    width: auto;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    float: right;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 5. Footer Inferior */
.bottom-footer {
    /* background-color: #0f1b4c; */
    /* Deep Navy */
    background-image: url('../images/footer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-footer h3 {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.3px;
}

/* Main Row: Logo Left, Phone Right */
.footer-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.footer-logo {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.contact-col {
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bottom Row: Nav Left, Legal Right */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    gap: 25px;
}

.footer-nav a,
.footer-legal a {
    color: #fff;
    transition: opacity 0.3s;
}

.footer-nav a:hover,
.footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.btn-footer-legal {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-footer-legal:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .footer-main-row,
    .footer-bottom-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- Media Queries (Responsividad) --- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
    }

    .top-bar {
        position: relative;
        /* No floating on mobile, stack securely */
        flex-direction: column;
        background-color: #000080;
        /* Blue background for whole header on mobile */
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
        padding: 15px 20px;
        justify-content: center;
    }

    .top-bar .nav-links a {
        color: #fff;
        /* White text on mobile blue bg */
    }

    .hero-image {
        display: none;
        /* Ocultar la imagen en móviles para simplificar */
        min-height: 200px;
    }

    .hero-content {
        padding: 140px 20px 40px 20px;
        /* Ajuste para navbar */
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-grid {
        flex-direction: column;
    }

    .area-card {
        flex-direction: column;
    }

    .area-card .card-image {
        flex: 1;
        max-height: none;
    }

    .footer-details {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-details .legal-info {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .practice-areas h3 {
        font-size: 2.5rem;
    }
    
    .practice-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .practice-image {
        flex: 1;
        max-width: 100%;
    }
    
    .reason-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Show mobile menu toggle on tablets */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .top-bar-left {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: auto;
        flex: 1;
        gap: 0;
    }
    
    .top-bar-right {
        justify-content: flex-end;
        width: auto;
        flex: 1;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        transform: translateY(-20px);
        background: linear-gradient(135deg, #000080 0%, #1a2b6b 100%);
        flex-direction: column;
        gap: 0;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
        min-width: 250px;
        max-width: calc(100vw - 40px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-sizing: border-box;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.mobile-menu-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(15px);
    }
    
    .nav-links a {
        color: #fff;
        font-size: 0.95rem;
        padding: 15px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: left;
        display: block;
        width: 100%;
        box-sizing: border-box;
        font-weight: 500;
        letter-spacing: 0.3px;
        position: relative;
        overflow: hidden;
        transform: translateX(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-links.mobile-menu-open a {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-links.mobile-menu-open a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.mobile-menu-open a:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.mobile-menu-open a:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.mobile-menu-open a:nth-child(4) { transition-delay: 0.25s; }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
        border-radius: 2px;
        transition: height 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
        color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links a:hover::before {
        height: 70%;
    }
    
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateX(5px) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        font-weight: 600 !important;
    }
    
    .nav-links a.active::before {
        height: 70%;
        background: linear-gradient(90deg, #fff, #ffffff) !important;
        width: 4px;
    }
    
    .lang-flag {
        align-self: center;
        margin-top: 0;
        flex-shrink: 0;
    }
}

/* Medium screens - adjust contact proportions */
@media (max-width: 1200px) {
    .info-box {
        max-width: 400px;
    }
    
    .contact-box {
        max-width: 600px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Header */
    .hero-section {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        flex: 1;
        padding: 120px 20px 40px 20px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin: 20px 0;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    /* Navigation */
    .top-bar {
        flex-direction: row;
        padding: 20px;
        position: relative;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .top-bar-left,
    .top-bar-right {
        flex: none;
        padding: 0;
    }
    
    .top-bar-left {
        justify-content: flex-start;
        flex: 1;
    }
    
    .top-bar-right {
        justify-content: flex-end;
        flex: 1;
    }
    
    .top-bar .logo {
        font-size: 1.5rem;
        justify-content: flex-start;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .menu-items {
        position: relative;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        width: 100%;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        transform: translateY(-20px);
        background: linear-gradient(135deg, #000080 0%, #1a2b6b 100%);
        flex-direction: column;
        gap: 8px;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
        min-width: 280px;
        max-width: calc(100vw - 40px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-sizing: border-box;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.mobile-menu-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(15px);
    }
    
    .nav-links a {
        color: #fff;
        font-size: 0.95rem;
        padding: 16px 22px;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: left;
        display: block;
        width: 100%;
        box-sizing: border-box;
        font-weight: 500;
        letter-spacing: 0.3px;
        position: relative;
        overflow: hidden;
        transform: translateX(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        white-space: nowrap;
        line-height: 1.2;
    }
    
    .nav-links.mobile-menu-open a {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-links.mobile-menu-open a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.mobile-menu-open a:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.mobile-menu-open a:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.mobile-menu-open a:nth-child(4) { transition-delay: 0.25s; }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
        border-radius: 2px;
        transition: height 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: translateX(5px) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .nav-links a:hover::before {
        height: 70%;
    }
    
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: translateX(5px) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        font-weight: 600 !important;
    }
    
    .nav-links a.active::before {
        height: 70%;
        background: linear-gradient(90deg, #fff, #ffffff) !important;
        width: 4px;
    }
    
    .lang-flag {
        align-self: center;
        margin-top: 0;
        flex-shrink: 0;
    }
    
    /* Practice Areas */
    .practice-areas h3 {
        font-size: 2rem;
        text-align: center;
    }
    
    .practice-areas .subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .area-navigation {
        flex-direction: column;
        gap: 0;
        margin-bottom: 40px;
    }
    
    .area-navigation .nav-item {
        width: 100%;
        min-width: auto;
        border-radius: 8px;
        margin-bottom: 2px;
    }
    
    .area-navigation .nav-item:first-child {
        border-radius: 8px;
    }
    
    .area-navigation .nav-item:last-child {
        border-radius: 8px;
    }
    
    .practice-content-wrapper {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .practice-image {
        order: 1;
        padding: 10px;
    }
    
    .practice-info {
        order: 2;
    }
    
    .practice-info h4 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .practice-info p {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .practice-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn-primary-small,
    .btn-outline-small {
        width: 100%;
        max-width: 250px;
        text-align: center;
        justify-content: center;
    }
    
    /* Why Us */
    .why-us h3 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .reason-item {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .reason-icon {
        flex: none;
        margin-right: 0;
        margin-bottom: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .reason-text h4 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .reason-text p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Contact */
    .info-contact-section {
        padding: 40px 0;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .info-box,
    .contact-box {
        padding: 30px 25px;
    }
    
    .info-box h4,
    .contact-box h4 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .info-box p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .contact-checklist {
        text-align: left;
    }
    
    .contact-checklist li {
        font-size: 0.85rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 0.9rem;
    }
    
    .btn-submit {
        width: 100%;
        text-align: center;
        justify-content: center;
        float: none;
    }
    
    /* Footer */
    .bottom-footer {
        padding: 40px 0 30px;
    }
    
    .bottom-footer h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .footer-main-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-logo {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .contact-col {
        font-size: 1rem;
        justify-content: center;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .practice-areas h3 {
        font-size: 1.8rem;
    }
    
    .why-us h3 {
        font-size: 1.6rem;
    }
    
    .info-box h4,
    .contact-box h4 {
        font-size: 1.4rem;
    }
    
    .bottom-footer h3 {
        font-size: 1.5rem;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero,
    .btn-primary-small,
    .btn-outline-small {
        padding: 12px 25px;
        font-size: 0.8rem;
    }
}