/* ============================================ 
ARCHIVO: style.css 
ESTILOS PRINCIPALES PARA LA PÁGINA WEB 
============================================ */
/* ============================================ 
1. VARIABLES Y RESET 
============================================ */
:root {
    /* PALETA DE COLORES PROFESIONAL */
    --azul-profundo: #1E3A5F;
    --dorado-elegante: #D4AF37;
    --gris-claro: #F5F7FA;
    --gris-oscuro: #2D3748;
    --blanco: #FFFFFF;
    --whatsapp: #25D366;
    --sombra: rgba(0, 0, 0, 0.08);
    --sombra-fuerte: rgba(0, 0, 0, 0.15);
    --transicion: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gris-oscuro);
    background-color: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--azul-profundo);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicion);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

section {
    padding: 80px 20px;
}

/* ============================================ 
2. BOTÓN FLOTANTE WHATSAPP 
============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transicion);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn .tooltip {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--azul-profundo);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.whatsapp-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============================================ 
3. HEADER / MENÚ DE NAVEGACIÓN 
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgb(240, 239, 237);
    box-shadow: 0 2px 15px var(--sombra);
    z-index: 999;
    padding: 15px 0;
}

.header-contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* AJUSTE PARA LOGO MÁS GRANDE */
.header {
    padding: 5px 0 !important;
    /* Menos padding vertical */
    min-height: 90px !important;
    /* Altura suficiente para logo */
}

/* Asegurar que el contenedor pueda manejar el logo grande */
.header-contenido {
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo-texto h1 {
    font-size: 20px;
    margin-bottom: 2px;
    color: var(--azul-profundo);
}

.logo-texto p {
    font-size: 13px;
    color: var(--dorado-elegante);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* MENÚ DESKTOP */
.nav-desktop ul {
    display: flex;
    gap: 35px;
}

.nav-desktop a {
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dorado-elegante);
    transition: width 0.3s ease;
}

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

.nav-desktop a:hover {
    color: var(--dorado-elegante);
}

/* ============================================ 
4. PORTADA / CARRUSEL 
============================================ */
.portada {
    position: relative;
    margin-top: 80px;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

/* CARRUSEL */
.carrusel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.activo {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTROLES CARRUSEL */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transicion);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.carrusel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carrusel-btn.prev {
    left: 20px;
}

.carrusel-btn.next {
    right: 20px;
}

/* INDICADORES CARRUSEL */
.indicadores {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transicion);
}

.indicador.activo {
    background: var(--dorado-elegante);
    transform: scale(1.2);
}

.indicador:hover {
    background: white;
}

/* CAPA CON TEXTO SOBRE CARRUSEL */
.carrusel-capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(54, 58, 20, 0.85) 0%, rgba(5, 9, 15, 0.7) 100%);
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.titulo-portada {
    font-size: 3.5rem;
    color: var(--blanco);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.texto-portada {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.portada-botones {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

/* ============================================ 
5. SECCIÓN NOSOTROS 
============================================ */
.nosotros {
    background-color: rgb(238, 235, 235);
}

.subtitulo {
    text-align: center;
    font-size: 16px;
    color: var(--dorado-elegante);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    position: relative;
}

.subtitulo::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: var(--dorado-elegante);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.titulo-seccion {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    position: relative;
}

.titulo-seccion::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: var(--dorado-elegante);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* CONTENIDO NOSOTROS */
.nosotros-contenido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 70px;
}

.nosotros-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--azul-profundo);
}

.nosotros-info p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* MISIÓN Y VISIÓN */
.mision-vision {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card-mv {
    background: var(--blanco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--sombra);
    transition: var(--transicion);
    position: relative;
    overflow: hidden;
}

.card-mv:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-mv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--dorado-elegante);
}

.icono-mv {
    font-size: 40px;
    color: var(--dorado-elegante);
    margin-bottom: 15px;
}

.card-mv h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.valores {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-style: italic;
}

/* TARJETAS DE ABOGADOS */
.abogados-titulo {
    text-align: center;
    margin-bottom: 50px;
}

.abogados-titulo h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.abogados-titulo p {
    color: var(--gris-oscuro);
    font-size: 1.1rem;
}

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

.tarjeta-abogado {
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
    transition: var(--transicion);
    position: relative;
}

.tarjeta-abogado:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.abogado-imagen {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.abogado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ← 'contain' en lugar de 'cover' */
    background: var(--gris-claro);
    /* Fondo para espacios vacíos */
    padding: 10px;
    /* Espacio alrededor de la foto */
    transition: transform 0.5s ease;
}

.tarjeta-abogado:hover .abogado-imagen img {
    transform: scale(1.05);
}

.abogado-especialidades {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.9), transparent);
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.abogado-especialidades span {
    background: var(--dorado-elegante);
    color: var(--azul-profundo);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.abogado-info {
    padding: 25px;
}

.abogado-info h4 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.abogado-cargo {
    color: var(--dorado-elegante);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.abogado-descripcion {
    margin-bottom: 20px;
    color: var(--gris-oscuro);
}

.btn-pequeno {
    padding: 10px 25px;
    font-size: 15px;
}

/* ============================================ 
TARJETAS HORIZONTALES - FOTOS COMPLETAS Y NATURALES 
============================================ */
.tarjetas-abogados {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tarjeta-abogado {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
    width: 100%;
}

.tarjeta-abogado:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* SECCIÓN DE IMAGEN - TOMA EL ESPACIO NECESARIO */
.abogado-imagen {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    position: relative;
    background: var(--gris-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* IMAGEN - SE MUESTRA COMPLETA, SIN RECORTES */
.abogado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    border-radius: 8px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* SECCIÓN DE INFORMACIÓN - SE EXPANDE */
.abogado-info {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* NOMBRE Y CARGO */
.abogado-info h4 {
    font-size: 1.8rem;
    color: var(--azul-profundo);
    margin-bottom: 5px;
    font-weight: 700;
}

.abogado-cargo {
    color: var(--dorado-elegante);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

/* DESCRIPCIÓN */
.abogado-descripcion {
    color: var(--gris-oscuro);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    flex-grow: 1;
}

/* ESPECIALIDADES - DEBAJO DE LA DESCRIPCIÓN */
.especialidades-container {
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.especialidades-container h5 {
    font-size: 1rem;
    color: var(--azul-profundo);
    margin-bottom: 12px;
    font-weight: 600;
}

.especialidades-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.especialidades-list span {
    background: var(--azul-profundo);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* BOTÓN DE CONTACTO */
.abogado-info .btn-pequeno {
    align-self: flex-start;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    background: var(--azul-profundo);
    color: white;
    border: 2px solid var(--azul-profundo);
    transition: all 0.3s ease;
}

.abogado-info .btn-pequeno:hover {
    background: transparent;
    color: var(--azul-profundo);
    transform: translateY(-2px);
}

/* ============================================ 
RESPONSIVE - SE ADAPTA A CUALQUIER DISPOSITIVO 
============================================ */
/* TABLETS */
@media (max-width: 992px) {
    .tarjeta-abogado {
        min-height: 250px;
    }

    .abogado-imagen {
        flex: 0 0 250px;
        width: 250px;
        min-width: 250px;
        padding: 15px;
    }

    .abogado-info {
        padding: 25px 30px;
    }

    .abogado-info h4 {
        font-size: 1.6rem;
    }
}

/* MÓVILES GRANDES */
@media (max-width: 768px) {
    .tarjeta-abogado {
        flex-direction: column;
        min-height: auto;
    }

    .abogado-imagen {
        flex: 0 0 auto;
        width: 100%;
        min-width: 100%;
        height: 300px;
        padding: 20px;
    }

    .abogado-imagen img {
        width: auto;
        max-width: 80%;
        height: auto;
        max-height: 90%;
    }

    .abogado-info {
        padding: 25px;
        text-align: center;
    }

    .especialidades-list {
        justify-content: center;
    }

    .abogado-info .btn-pequeno {
        align-self: center;
    }
}

/* MÓVILES PEQUEÑOS */
@media (max-width: 480px) {
    .abogado-imagen {
        height: 250px;
        padding: 15px;
    }

    .abogado-imagen img {
        max-width: 85%;
        max-height: 85%;
    }

    .abogado-info {
        padding: 20px;
    }

    .abogado-info h4 {
        font-size: 1.5rem;
    }

    .abogado-cargo {
        font-size: 1rem;
    }

    .especialidades-list span {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

/* ============================================ 
6. SECCIÓN SERVICIOS 
============================================ */
.servicios {
    background: var(--blanco);
}

.descripcion-seccion {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--gris-oscuro);
}

/* TARJETAS DE SERVICIOS */
.tarjetas-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tarjeta-servicio {
    background: var(--blanco);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--sombra);
    transition: var(--transicion);
    border-top: 4px solid var(--dorado-elegante);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tarjeta-servicio:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.servicio-icono {
    font-size: 50px;
    color: var(--dorado-elegante);
    margin-bottom: 20px;
}

.tarjeta-servicio h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.servicio-descripcion {
    margin-bottom: 20px;
    color: var(--gris-oscuro);
    flex-grow: 0;
}

.servicio-detalles {
    margin-bottom: 25px;
    flex-grow: 1;
}

.servicio-detalles h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--azul-profundo);
}

.servicio-detalles ul {
    padding-left: 20px;
}

.servicio-detalles li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 10px;
}

.servicio-detalles li::before {
    content: '•';
    color: var(--dorado-elegante);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.btn-servicio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dorado-elegante);
    font-weight: 600;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-servicio:hover {
    color: var(--azul-profundo);
    gap: 15px;
}

/* ============================================ 
7. SECCIÓN CONTACTO 
============================================ */
.contacto {
    background: var(--gris-claro);
}

.contacto-contenido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

/* INFORMACIÓN DE CONTACTO */
.contacto-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    font-size: 22px;
    color: var(--dorado-elegante);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.redes-contacto {
    margin-top: 40px;
}

.redes-contacto h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.redes-icons {
    display: flex;
    gap: 15px;
}

.redes-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--azul-profundo);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transicion);
}

.redes-icons a:hover {
    background: var(--dorado-elegante);
    transform: translateY(-5px);
}

/* FORMULARIO DE CONTACTO */
.formulario-contacto {
    background: var(--blanco);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--sombra);
}

.formulario-contacto h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.formulario-contacto>p {
    margin-bottom: 25px;
    color: var(--gris-oscuro);
}

.form-grupo {
    margin-bottom: 20px;
}

.form-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--azul-profundo);
}

.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transicion);
    background: var(--gris-claro);
}

.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: var(--dorado-elegante);
    background: var(--blanco);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contador-caracteres {
    text-align: right;
    font-size: 14px;
    color: var(--gris-oscuro);
    margin-top: 5px;
}

.error-msg {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.btn-enviar {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mensaje-exito {
    background: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

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

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

.footer-logo .logo img {
    width: 60px;
    height: 60px;
}

.footer-logo .logo-texto h3 {
    color: white;
    font-size: 22px;
}

.footer-logo .logo-texto p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-descripcion {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-enlaces h4,
.footer-servicios h4,
.footer-contacto h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-enlaces h4::after,
.footer-servicios h4::after,
.footer-contacto h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--dorado-elegante);
}

.footer-enlaces ul,
.footer-servicios ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-enlaces a,
.footer-servicios a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transicion);
}

.footer-enlaces a:hover,
.footer-servicios a:hover {
    color: var(--dorado-elegante);
    padding-left: 8px;
}

.footer-contacto p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contacto i {
    color: var(--dorado-elegante);
    width: 20px;
}

.footer-redes {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-redes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transicion);
}

.footer-redes a:hover {
    background: var(--dorado-elegante);
    transform: translateY(-5px);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-copyright p:first-child {
    margin-bottom: 5px;
}

/* ============================================ 
9. BOTONES GENERALES 
============================================ */
.btn {
    display: inline-block;
    background: var(--dorado-elegante);
    color: var(--azul-profundo);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transicion);
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn:hover {
    background: #b8941f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-contacto {
    background: transparent;
    border: 2px solid var(--dorado-elegante);
    color: var(--dorado-elegante);
}

.btn-contacto:hover {
    background: var(--dorado-elegante);
    color: var(--azul-profundo);
}

/* ============================================ 
10. ANIMACIONES 
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ============================================ 
11. RESPONSIVE DESIGN 
============================================ */
@media (max-width: 992px) {
    .titulo-portada {
        font-size: 2.8rem;
    }

    .nosotros-contenido,
    .contacto-contenido {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portada-botones {
        flex-direction: column;
        align-items: flex-start;
    }

    .portada-botones .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }

    .titulo-portada {
        font-size: 2.3rem;
    }

    .titulo-seccion {
        font-size: 2.2rem;
    }

    .nav-desktop {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .tarjetas-abogados,
    .tarjetas-servicios {
        grid-template-columns: 1fr;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .portada {
        height: 70vh;
        min-height: 500px;
    }

    .titulo-portada {
        font-size: 1.8rem;
    }

    .texto-portada {
        font-size: 1rem;
    }

    .formulario-contacto {
        padding: 25px;
    }

    .nav-mobile {
        width: 100%;
    }

    .abogado-imagen {
        height: 250px;
    }
}

/* ============================================ 
12. ESTILOS DE UTILIDAD 
============================================ */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.oculto {
    display: none;
}

/* ============================================ 
CORRECCIÓN ESPECÍFICA FORMULARIO Y CONTACTO 
============================================ */
/* FIX 1: CONTENEDOR PRINCIPAL DEL CONTACTO */
.contacto-contenido {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    width: 100% !important;
}

/* FIX 2: INFORMACIÓN DE CONTACTO (COLUMNA IZQUIERDA) */
.contacto-info {
    flex: 1 !important;
    min-width: 300px !important;
    max-width: 100% !important;
    padding-right: 20px !important;
}

/* FIX 3: FORMULARIO (COLUMNA DERECHA) - ARREGLADO */
.formulario-contacto {
    flex: 1 !important;
    min-width: 300px !important;
    max-width: 100% !important;
    background: var(--blanco) !important;
    padding: 30px 25px !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* FIX 4: GRUPOS DEL FORMULARIO - EVITAR DESBORDE */
.form-grupo {
    margin-bottom: 20px !important;
    width: 100% !important;
    position: relative !important;
}

.form-grupo label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: var(--azul-profundo) !important;
    font-size: 15px !important;
}

/* FIX 5: INPUTS, SELECT Y TEXTAREA - 100% ANCHO */
.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    background: #f9fafb !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* FIX 6: TEXTAREA ESPECÍFICO - ALTURA FIJA */
.form-grupo textarea {
    min-height: 140px !important;
    max-height: 200px !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}

/* FIX 7: SELECT PERSONALIZADO */
.form-grupo select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

/* FIX 8: ESTADOS DE FOCUS */
.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    outline: none !important;
    border-color: var(--dorado-elegante) !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

/* FIX 9: CONTADOR DE CARACTERES - POSICIÓN FIJA */
.contador-caracteres {
    text-align: right !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    margin-top: 6px !important;
    font-weight: 500 !important;
}

/* FIX 10: MENSAJES DE ERROR - EVITAR DESBORDE */
.error-msg {
    color: #dc2626 !important;
    font-size: 13px !important;
    margin-top: 5px !important;
    min-height: 18px !important;
    display: block !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* FIX 11: BOTÓN ENVIAR - ANCHO COMPLETO */
.btn-enviar {
    width: 100% !important;
    padding: 16px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: var(--dorado-elegante) !important;
    color: var(--azul-profundo) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-enviar:hover {
    background: #b8941f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3) !important;
}

/* FIX 12: MENSAJE DE ÉXITO */
.mensaje-exito {
    background: #10b981 !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 6px !important;
    margin-top: 20px !important;
    text-align: center !important;
    display: none !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* FIX 13: INFO ITEMS DE CONTACTO - EVITAR DESBORDE */
.info-item {
    display: flex !important;
    gap: 18px !important;
    margin-bottom: 25px !important;
    align-items: flex-start !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
}

.info-item i {
    font-size: 20px !important;
    color: var(--dorado-elegante) !important;
    min-width: 24px !important;
    margin-top: 3px !important;
}

.info-item div {
    flex: 1 !important;
    min-width: 0 !important;
    /* IMPORTANTE: Permite que el texto se ajuste */
}

.info-item h4 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
    color: var(--azul-profundo) !important;
    font-weight: 600 !important;
}

.info-item p {
    color: var(--gris-oscuro) !important;
    line-height: 1.5 !important;
    font-size: 15px !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

/* FIX 14: REDES SOCIALES EN CONTACTO */
.redes-contacto {
    margin-top: 35px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.redes-icons {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.redes-icons a {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: var(--azul-profundo) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
}

.redes-icons a:hover {
    background: var(--dorado-elegante) !important;
    transform: translateY(-3px) !important;
}

/* ============================================ 
RESPONSIVE ESPECÍFICO PARA FORMULARIO 
============================================ */
/* TABLET Y MÓVIL GRANDE (768px o menos) */
@media (max-width: 768px) {
    .contacto-contenido {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .contacto-info,
    .formulario-contacto {
        min-width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }

    .contacto-info {
        padding: 0 !important;
    }

    .formulario-contacto {
        padding: 25px 20px !important;
    }

    .form-grupo input,
    .form-grupo select,
    .form-grupo textarea {
        padding: 16px 14px !important;
        font-size: 16px !important;
        /* Importante para iOS */
    }

    .btn-enviar {
        padding: 18px !important;
        font-size: 17px !important;
    }

    .info-item {
        gap: 15px !important;
    }
}

/* MÓVIL PEQUEÑO (480px o menos) */
@media (max-width: 480px) {
    .formulario-contacto {
        padding: 20px 15px !important;
    }

    .form-grupo {
        margin-bottom: 18px !important;
    }

    .form-grupo label {
        font-size: 14px !important;
    }

    .form-grupo input,
    .form-grupo select,
    .form-grupo textarea {
        padding: 14px 12px !important;
        font-size: 15px !important;
    }

    .form-grupo textarea {
        min-height: 120px !important;
    }

    .contador-caracteres {
        font-size: 12px !important;
    }

    .info-item {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .info-item i {
        align-self: flex-start !important;
    }
}

/* FIX 15: CORREOS ELECTRÓNICOS LARGOS - EVITAR DESBORDE */
.info-item p {
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    /* Para emails largos */
    hyphens: auto !important;
}

/* FIX 16: DIRECCIÓN LARGA */
.info-item div p:last-child {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

/* FIX 17: SELECT DESPLEGABLE EN MÓVIL */
@media (max-width: 768px) {
    .form-grupo select {
        font-size: 16px !important;
        /* Previene zoom en iOS */
    }
}

/* FIX 18: GARANTIZAR QUE TODO ESTÉ DENTRO DEL CONTENEDOR */
.contenedor {
    overflow: hidden !important;
    max-width: 100% !important;
}

/* FIX 19: ESPECIAL PARA EMAILS MUY LARGOS */
.info-item div[title*="@"] {
    overflow: visible !important;
}

.info-item p {
    max-width: 100% !important;
}

/* FIX 20: BORDE VISUAL PARA DEBUG (OPCIONAL) */
/* .formulario-contacto { border: 2px solid red; } */
/* .contacto-info { border: 2px solid blue; } */
/* ============================================ 
FIXES CRÍTICOS PARA EL MENÚ HAMBURGUESA 
============================================ */
/* 1. AJUSTAR EL LOGO PARA QUE NO SEA TAN GRANDE */
.logo img {
    width: 150px !important;
    /* Reducido de 250px */
    height: 150px !important;
    /* Reducido de 250px */
    object-fit: contain !important;
}

/* 2. HEADER MÁS COMPACTO */
.header {
    padding: 10px 0 !important;
    height: 80px !important;
}

.header-contenido {
    height: 60px !important;
}

/* 3. MOSTRAR EL MENÚ HAMBURGUESA EN MÓVIL */
.hamburger-container {
    display: flex !important;
    align-items: center !important;
}

/* 4. BOTÓN HAMBURGUESA VISIBLE */
.hamburger-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 20px !important;
    background: var(--azul-profundo) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
}

.hamburger-btn:hover {
    background: var(--dorado-elegante) !important;
    color: var(--azul-profundo) !important;
    transform: translateY(-2px) !important;
}

/* 5. MENÚ DESPLEGABLE - POSICIÓN CORRECTA */
.hamburger-menu {
    position: fixed !important;
    top: 80px !important;
    /* Debajo del header */
    right: -100% !important;
    width: 320px !important;
    height: calc(100vh - 80px) !important;
    background: white !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 1000 !important;
    transition: right 0.4s ease !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

.hamburger-menu.active {
    right: 0 !important;
}

/* 6. OVERLAY DE FONDO */
.menu-overlay {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 80px) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 7. ESCONDER MENÚ HAMBURGUESA EN DESKTOP, MOSTRAR SOLO EN MÓVIL */
@media (min-width: 769px) {
    .hamburger-container {
        display: none !important;
    }

    .nav-desktop {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .hamburger-container {
        display: flex !important;
    }

    .nav-desktop {
        display: none !important;
    }
}

/* 8. MEJORAS VISUALES PARA EL MENÚ DESPLEGABLE */
.menu-header {
    background: var(--azul-profundo) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.menu-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.menu-item {
    display: flex !important;
    align-items: center !important;
    padding: 15px !important;
    background: var(--gris-claro) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    color: var(--gris-oscuro) !important;
}

.menu-item:hover {
    background: var(--dorado-elegante) !important;
    color: var(--azul-profundo) !important;
    transform: translateX(5px) !important;
}

.menu-icon {
    width: 40px !important;
    height: 40px !important;
    background: white !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
}

.menu-icon i {
    color: var(--azul-profundo) !important;
    font-size: 1.2rem !important;
}

.menu-content {
    flex: 1 !important;
}

.menu-content h4 {
    font-size: 1.1rem !important;
    margin-bottom: 5px !important;
    color: var(--azul-profundo) !important;
}

.menu-content p {
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
}

.menu-arrow {
    color: var(--gris-oscuro) !important;
    opacity: 0.5 !important;
}

.menu-footer {
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.menu-cta {
    display: block !important;
    background: var(--dorado-elegante) !important;
    color: var(--azul-profundo) !important;
    padding: 15px !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.menu-cta:hover {
    background: var(--azul-profundo) !important;
    color: white !important;
    transform: translateY(-3px) !important;
}

footer {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

footer p,
footer li {
    word-break: break-word;
    white-space: normal !important;
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    footer {
        padding: 0 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }
}