/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3a52;
    --secondary-color: #2c5f7f;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* ==================== LANGUAGE SELECTOR ==================== */
.language-selector {
    position: relative;
    z-index: 1000;
}

.lang-dropdown-custom {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    background: white;
    border: 2px solid #1a365d;
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #1a365d;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 70px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.1);
}

.lang-dropdown-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
    border-color: #2d5a87;
}

.lang-dropdown-btn:focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.lang-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #1a365d;
}

.lang-dropdown-btn.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #1a365d;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 2px;
}

.lang-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 12px 18px;
    font-weight: 600;
    color: #1a365d;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.lang-option:last-child {
    border-bottom: none;
    border-radius: 0 0 18px 18px;
}

.lang-option:hover {
    background-color: #f8f9fa;
    color: #2d5a87;
    transform: translateX(5px);
}

.lang-option.active {
    background-color: #1a365d;
    color: white;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    padding: 10px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 25px;
}

/* Sección 1: Logo */
.nav-logo-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Sección 2: Menú de navegación */
.nav-menu-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Sección 3: Idiomas y teléfono */
.nav-actions-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(26, 54, 93, 0.1);
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #1a365d;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-menu-toggle:hover {
    background: rgba(26, 54, 93, 0.15);
    transform: scale(1.05);
}

.mobile-menu-toggle:hover span {
    background: #2d5a87;
}

/* Animación del botón hamburguesa */
.mobile-menu-toggle.active {
    background: rgba(26, 54, 93, 0.2);
}

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

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 12px 0;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #1a365d;
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: #f97316;
    font-weight: 600;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    border-radius: 1px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a365d, #2d5a87);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-phone {
    background: linear-gradient(135deg, #1a365d, #2d5a87);
    color: white !important;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.4);
}

.nav-phone::after {
    display: none;
}

/* Menú Modal Centrado - Diseño moderno */
.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: 90%;
    height: auto;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.mobile-menu-modal.active .mobile-menu-content {
    transform: translate(-50%, -50%) scale(1);
}

.mobile-menu-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

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

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-menu-nav {
    padding: 30px 0;
}

.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav li {
    margin: 0;
}

.mobile-menu-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
    border-radius: 0;
}

.mobile-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.mobile-menu-nav a.active {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-actions {
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-languages {
    display: flex;
    justify-content: center;
}

.mobile-menu-languages .lang-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
}

.mobile-menu-languages .lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-languages .lang-arrow {
    color: white;
}

.mobile-menu-phone {
    display: flex;
    justify-content: center;
}

.mobile-menu-phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px;
}

.mobile-menu-phone a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==================== HERO SECTION ==================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/attorney-7.jpg') center/cover no-repeat;
    opacity: 0.25;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(51, 65, 85, 0.85) 100%);
    */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-badge i {
    color: #fbbf24;
    font-size: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fbbf24;
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.6s both;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #cbd5e1;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.8s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a365d;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: fadeInUp 1s ease 1.2s both;
}

.hero-scroll i {
    font-size: 24px;
    color: #fbbf24;
    animation: bounce 2s infinite;
}

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

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

/* Efectos de partículas flotantes */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.experience-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

.experience-text {
    font-size: 14px;
    display: block;
}

.section-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 10px;
    flex: 1;
}

.feature-item i {
    font-size: 24px;
    color: var(--accent-color);
}

/* ==================== SERVICES PREVIEW ==================== */
.services-preview {
    padding: 100px 0;
    background: var(--bg-light);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.service-link:hover {
    color: var(--primary-color);
}

/* ==================== PROCESS SECTION ==================== */
.process-section {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    position: relative;
    padding: 40px 30px;
}

.step-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.process-step h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-light);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    background: #f8fafc;
    padding: 40px 0;
}

.contact-section .section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-main {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.contact-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

.contact-form-wrapper {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h2 {
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-form-wrapper p {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.contact-form-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: #fbbf24;
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a365d;
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

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

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
}

.btn-submit {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.btn-submit:disabled {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #64748b;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* Tarjeta de información más compacta */
.contact-info-wrapper {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-wrapper h3 {
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .contact-layout {
        display: flex;
        justify-content: center;
    }
    
    .contact-info-wrapper {
        max-width: 100%;
    }
}

#captcha-question {
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #1a365d;
    white-space: nowrap;
}

#captcha {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

#captcha:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

#captcha::placeholder {
    color: #94a3b8;
}

.btn-refresh {
    background: #f97316;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.btn-refresh:hover {
    background: #ea580c;
    transform: rotate(180deg);
}

.btn-refresh i {
    font-size: 0.9rem;
}

.contact-info-wrapper {
    background: #f8fafc;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.contact-info-wrapper h3 {
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #1a365d;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #fbbf24;
    width: 20px;
    font-size: 1.1rem;
}

.contact-item strong {
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-item span {
    font-weight: 500;
}

.quick-contact {
    background: #1a365d;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.quick-contact h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-whatsapp,
.btn-call {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.btn-call {
    background: white;
    color: #1a365d;
}

.btn-call:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Enlaces dentro de elementos de contacto: mismo color que los iconos */
.contact-item a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: #f59e0b; /* tono ligeramente más oscuro al pasar el ratón */
    text-decoration: underline;
}

/* Responsive Contact Section */
@media (max-width: 1024px) {
    .contact-layout {
        display: flex;
        justify-content: center;
    }
    
    .contact-info-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 30px 0;
    }
    
    .contact-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .contact-layout {
        display: flex;
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 16px;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1rem;
    }
    
    .contact-form-wrapper p {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .contact-form-page {
        gap: 10px;
    }
    
    .contact-info-wrapper {
        padding: 16px;
        gap: 10px;
    }
    
    .contact-info-wrapper h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .contact-card {
        padding: 10px;
    }
    
    .contact-item {
        margin-bottom: 8px;
    }
    
    .contact-item i {
        width: 14px;
        font-size: 0.9rem;
    }
    
    .contact-item strong {
        font-size: 0.9rem;
    }
    
    .quick-contact {
        padding: 16px;
    }
    
    .quick-contact h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .btn-whatsapp,
    .btn-call {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 20px 0;
    }
    
    .contact-section .container {
        padding: 0 10px;
    }
    
    .contact-section .section-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .contact-layout {
        display: flex;
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 12px;
        border-radius: 8px;
    }
    
    .contact-form-wrapper h2 {
        font-size: 0.95rem;
    }
    
    .contact-form-wrapper p {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    
    .contact-form-page {
        gap: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .form-group textarea {
        min-height: 50px;
    }
    
    .btn-submit {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .contact-info-wrapper {
        padding: 12px;
        border-radius: 8px;
        gap: 8px;
    }
    
    .contact-info-wrapper h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .contact-card {
        padding: 8px;
        border-radius: 6px;
    }
    
    .contact-item {
        margin-bottom: 6px;
    }
    
    .contact-item i {
        width: 12px;
        font-size: 0.8rem;
    }
    
    .contact-item strong {
        font-size: 0.85rem;
    }
    
    .contact-item span {
        font-size: 0.8rem;
    }
    
    .quick-contact {
        padding: 12px;
    }
    
    .quick-contact h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .btn-whatsapp,
    .btn-call {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .hero-badge {
        padding: 12px 24px;
        font-size: 13px;
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 3.2rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 35px;
    }
    
    .hero-buttons {
        gap: 20px;
    }
    
    .btn {
        padding: 16px 32px;
        font-size: 15px;
    }
    
    .section-title {
        font-size: 32px;
    }
}

/* Breakpoint 1: Pantallas grandes - Reducir espaciado */
@media (max-width: 1200px) {
    .nav-wrapper {
        gap: 20px;
        padding: 0 25px;
    }
    
    .nav-menu {
        gap: 30px;
    }
    
    .nav-actions-section {
        gap: 15px;
    }
}

/* Breakpoint 2: Tablets - Ocultar teléfono, mantener menú */
@media (max-width: 992px) {
    .nav-wrapper {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 15px;
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .nav-phone {
        display: none;
    }
    
    .language-selector {
        display: none;
    }
    
    .nav-actions-section {
        justify-content: center;
    }
}

/* Breakpoint 3: Tablets pequeñas - Reducir menú */
@media (max-width: 768px) {
    .nav-wrapper {
        grid-template-columns: 1fr auto;
        gap: 20px;
        padding: 0 20px;
    }
    
    .nav-menu-section {
        display: none;
    }
    
    .nav-actions-section {
        justify-content: flex-end;
    }
    
    .mobile-menu-toggle {
        display: flex;
        width: 52px;
        height: 52px;
        padding: 14px;
    }
    
    .mobile-menu-toggle span {
        width: 26px;
        height: 3px;
    }
    
    .language-selector {
        top: 15px;
        right: 15px;
    }
    
    .lang-dropdown-btn {
        font-size: 13px;
        padding: 8px 14px;
        min-width: 60px;
    }
    
    .hero {
        height: 100vh;
        padding: 60px 0 40px;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero-badge {
        padding: 10px 20px;
        font-size: 12px;
        margin-bottom: 25px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 15px 25px;
        font-size: 14px;
    }
    
    .hero-scroll {
        bottom: 20px;
    }
    
    .hero-scroll i {
        font-size: 20px;
    }
    
    .about-features {
        flex-direction: column;
    }
    
    /* Ajustes para el menú modal */
    .mobile-menu-content {
        max-width: 350px;
        width: 85%;
        height: auto;
        overflow: visible;
    }
    
    .mobile-menu-header {
        padding: 25px 25px 15px;
    }
    
    .mobile-menu-nav a {
        padding: 15px 25px;
        font-size: 15px;
    }
    
    .mobile-menu-actions {
        padding: 15px 25px 25px;
    }
    
    /* Hero responsive para tablets pequeñas */
    .hero {
        padding: 70px 0 50px;
    }
    
    .hero-content {
        padding: 0 25px;
    }
    
    .hero-badge {
        padding: 11px 22px;
        font-size: 12px;
        margin-bottom: 28px;
    }
    
    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 18px;
    }
    
    .hero-subtitle {
        font-size: 2.8rem;
        margin-bottom: 18px;
    }
    
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }
    
    .hero-buttons {
        gap: 18px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 14px;
    }
}

/* Breakpoint 4: Móviles - Layout simplificado */
@media (max-width: 480px) {
    .nav-wrapper {
        grid-template-columns: 1fr auto;
        gap: 15px;
        padding: 0 15px;
    }
    
    .language-selector {
        top: 12px;
        right: 12px;
    }
    
    .lang-dropdown-btn {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 55px;
    }
    
    .mobile-menu-toggle {
        width: 56px;
        height: 56px;
        padding: 16px;
    }
    
    .mobile-menu-toggle span {
        width: 28px;
        height: 3px;
    }
    
    .mobile-menu-content {
        max-width: 320px;
        width: 90%;
        height: auto;
        overflow: visible;
        border-radius: 15px;
    }
    
    .mobile-menu-header {
        padding: 20px 20px 15px;
    }
    
    .mobile-menu-nav a {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .mobile-menu-actions {
        padding: 15px 20px 20px;
    }
}

/* ==================== MINISTERIO LOGO ==================== */
.ministerio-logo {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    text-align: left;
}

.ministerio-logo-img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
    display: block;
    margin: 0;
}

.ministerio-logo-img:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

/* Responsive para el logo del ministerio */
@media (max-width: 768px) {
    .ministerio-logo-img {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .ministerio-logo-img {
        height: 60px;
    }
}

/* ============================================
   SEGURIDAD DE FORMULARIOS
   ============================================ */

.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

.form-field.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-field.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Estilo para campos deshabilitados por rate limiting */
.form-field.rate-limited {
    background-color: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
}

/* ============================================
   FIX PARA ICONOS FONT AWESOME
   ============================================ */

/* Asegurar que los iconos de Font Awesome se muestren */
.fas, .far, .fab, .fal, .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
}

/* Específico para iconos de servicios */
.service-icon .fas {
    display: inline-block !important;
    font-size: 32px !important;
    color: white !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Forzar iconos específicos si Font Awesome no carga */
.service-icon .fa-user-secret::before { content: "\f21b" !important; }
.service-icon .fa-chart-line::before { content: "\f201" !important; }
.service-icon .fa-building::before { content: "\f1ad" !important; }
.service-icon .fa-shield-alt::before { content: "\f3ed" !important; }
.service-icon .fa-gavel::before { content: "\f0e3" !important; }
.service-icon .fa-laptop-code::before { content: "\f5fc" !important; }

/* Debug: mostrar borde rojo si los iconos no cargan - DESHABILITADO */
/* .service-icon .fas:empty::before {
    content: "⚠";
    color: red;
    font-size: 24px;
} */

