/* ==========================================================================
   ESTILOS GENERALES Y DISEÑO CORPORATIVO - ABOGADA CARMEN LÓPEZ JIMÉNEZ
   ========================================================================== */

/* IMPORTACIÓN DE FUENTES DE GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* VARIABLES DE DISEÑO (TOKENS) */
:root {
    /* Paleta de Colores */
    --color-navy-dark: #0a1d37;       /* Azul marino muy oscuro y elegante */
    --color-navy-medium: #11325d;     /* Azul marino para elementos destacados */
    --color-navy-light: #f0f4f8;      /* Fondo azul muy claro para contraste */
    --color-gold: #b89765;            /* Dorado corporativo principal */
    --color-gold-hover: #a3814f;      /* Dorado para hovers */
    --color-gold-light: #f7f3eb;      /* Fondo dorado suave */
    --color-anthracite: #2c3539;      /* Gris antracita oscuro para texto principal */
    --color-anthracite-light: #5f6c72;/* Gris medio para textos secundarios */
    --color-white: #ffffff;
    --color-bg-light: #fafbfc;        /* Color de fondo alternativo */
    --color-border: #e2e8f0;          /* Color de borde por defecto */
    --color-border-gold: rgba(184, 151, 101, 0.2);

    /* Tipografía */
    --font-headings: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Sombras y Efectos */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(10, 29, 55, 0.06);
    --shadow-lg: 0 16px 32px rgba(10, 29, 55, 0.1);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
}

/* RESET GENERAL */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-anthracite);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* TIPOGRAFÍA ELEMENTAL */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-navy-dark);
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--color-anthracite-light);
}

a {
    color: var(--color-navy-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold);
}

/* CONTENEDOR COMÚN */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* BOTONES PREMIUM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-accent {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-navy-dark);
    border-color: var(--color-navy-dark);
}

.btn-outline:hover {
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-navy-dark);
    transform: translateY(-2px);
}

/* SECCIONES */
section {
    padding: 5rem 0;
}

.section-bg-light {
    background-color: var(--color-bg-light);
}

.section-bg-navy {
    background-color: var(--color-navy-dark);
    color: var(--color-white);
}

.section-bg-navy h2, 
.section-bg-navy h3 {
    color: var(--color-white);
}

.section-bg-navy p {
    color: rgba(255, 255, 255, 0.7);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
}

.section-title-left {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.section-title-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
}

/* ==========================================================================
   CABECERA (NAV BAR)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: background-color var(--transition-fast);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Menú de Navegación */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-navy-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-gold);
    transition: width var(--transition-normal);
}

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

.nav-link.active {
    color: var(--color-gold);
    font-weight: 600;
}

/* Botón Hamburguesa Móvil */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-navy-dark);
    margin: 5px 0;
    transition: all var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 550px;
    height: 80vh;
    max-height: 750px;
    background-image: linear-gradient(to right, rgba(10, 29, 55, 0.95) 40%, rgba(10, 29, 55, 0.6) 100%), url('../images/despacho-hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--color-white);
    padding: 0;
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin-bottom: 1.25rem;
    display: block;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   SERVICIOS DESTACADOS (PÁGINA PRINCIPAL / ÁREAS)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-gold);
    transition: width var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card:hover::before {
    width: 100%;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--color-navy-light);
    color: var(--color-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 1.75rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.service-card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card-text {
    font-size: 0.9375rem;
    color: var(--color-anthracite-light);
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.service-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.service-card-link:hover {
    color: var(--color-navy-dark);
}

.service-card-link:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   SECCIÓN: POR QUÉ ELEGIRNOS
   ========================================================================== */
.why-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-image-wrapper {
    position: relative;
    border-left: 4px solid var(--color-gold);
    padding-left: 2rem;
}

.why-quote {
    font-family: var(--font-headings);
    font-size: 1.75rem;
    line-height: 1.4;
    color: var(--color-navy-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.why-quote-author {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
}

.why-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.why-item {
    display: flex;
    gap: 1.25rem;
}

.why-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border-gold);
    border-radius: 50%;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gold-light);
}

.why-item-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.why-item-desc {
    font-size: 0.9375rem;
    color: var(--color-anthracite-light);
    margin-bottom: 0;
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;
}

.testimonial-quote {
    font-size: 0.9375rem;
    color: var(--color-anthracite);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    position: relative;
}

.testimonial-quote::before {
    content: '“';
    font-family: var(--font-headings);
    font-size: 4rem;
    color: rgba(184, 151, 101, 0.15);
    position: absolute;
    top: -2.5rem;
    left: -1rem;
}

.testimonial-author-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--color-navy-light);
    border-radius: 50%;
    color: var(--color-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.testimonial-author-info h4 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-navy-dark);
}

.testimonial-author-info p {
    font-size: 0.75rem;
    color: var(--color-gold);
    margin-bottom: 0;
    font-weight: 500;
}

/* ==========================================================================
   SECCIÓN: CALL TO ACTION (CTA)
   ========================================================================== */
.cta-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* ==========================================================================
   PÁGINA: SOBRE MÍ
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-image-card {
    background-color: var(--color-navy-dark);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image-card::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    border-top: 3px solid var(--color-gold);
    border-right: 3px solid var(--color-gold);
    z-index: -1;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--color-navy-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 2rem;
}

.about-image-placeholder i {
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.about-image-placeholder h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-image-placeholder p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.about-details h2 {
    margin-bottom: 1.5rem;
}

.about-details p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.method-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
}

.method-num {
    font-family: var(--font-headings);
    font-size: 2.25rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.method-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy-dark);
    margin-bottom: 0.5rem;
}

.method-text {
    font-size: 0.875rem;
    color: var(--color-anthracite-light);
    margin-bottom: 0;
}

/* ==========================================================================
   PÁGINA: CONTACTO
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.contact-form-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.contact-form-subtitle {
    font-size: 0.9375rem;
    color: var(--color-anthracite-light);
    margin-bottom: 2rem;
}

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

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

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    background-color: #fafbfc;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-navy-medium);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(17, 50, 93, 0.08);
}

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

.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-checkbox {
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 0.8125rem;
    color: var(--color-anthracite-light);
    cursor: pointer;
    line-height: 1.4;
}

.form-checkbox-label a {
    color: var(--color-gold);
    text-decoration: underline;
}

.form-checkbox-label a:hover {
    color: var(--color-navy-dark);
}

/* Info de contacto sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info-block {
    display: flex;
    gap: 1.25rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-navy-light);
    color: var(--color-navy-medium);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.contact-info-block:hover .contact-info-icon {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.contact-info-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-details p {
    font-size: 0.9375rem;
    color: var(--color-anthracite-light);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.contact-info-details a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-navy-medium);
}

.contact-info-details a:hover {
    color: var(--color-gold);
}

.map-wrapper {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    height: 320px;
    margin-top: 1rem;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mensajes de formulario de contacto */
.form-message {
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */
.legal-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.legal-title {
    margin-bottom: 1rem;
    font-size: 2.25rem;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--color-anthracite-light);
    margin-bottom: 3rem;
    display: block;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem 0;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 1.75rem 0 0.75rem 0;
}

.legal-content p, .legal-content li {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-anthracite);
    margin-bottom: 1.25rem;
}

.legal-content ul, .legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.footer {
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    padding: 5rem 0 2rem 0;
    border-top: 3px solid var(--color-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo-title {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-col-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1.5px;
    background-color: var(--color-gold);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-menu-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-menu-link:hover {
    color: var(--color-gold);
    transform: translateX(3px);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--color-gold);
    margin-top: 3px;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

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

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-legal-link {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal-link:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   BANNER DE COOKIES (GDPR)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 500px;
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border-gold);
    z-index: 9999;
    display: none; /* Controlado por JS */
    animation: slideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-title i {
    color: var(--color-gold);
}

.cookie-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--color-gold);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--color-white);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.cookie-btn-accept {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.cookie-btn-accept:hover {
    background-color: var(--color-white);
    color: var(--color-navy-dark);
}

.cookie-btn-reject {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   ANIMACIONES Y EFECTOS
   ========================================================================== */
@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (DISEÑO RESPONSIVO)
   ========================================================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    .hero-title { font-size: 2.75rem; }
    .why-section-grid { gap: 2rem; }
    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    section {
        padding: 3.5rem 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 5rem 0;
        background-image: linear-gradient(to bottom, rgba(10, 29, 55, 0.98) 70%, rgba(10, 29, 55, 0.85) 100%), url('../images/despacho-hero.png');
    }

    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2rem;
        gap: 2.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
    }

    .nav.open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.125rem;
        display: block;
        width: 100%;
    }

    .mobile-nav-toggle {
        display: block;
    }

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

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

    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .why-section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .why-image-wrapper {
        border-left: 0;
        border-bottom: 3px solid var(--color-gold);
        padding-left: 0;
        padding-bottom: 1.5rem;
    }

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

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
    
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 1.5rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }
}
