/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1a2e3f;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4a6572;
    max-width: 700px;
    margin-bottom: 3rem;
}

/* ===== ENCABEZADO Y NAVEGACIÓN ===== */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 40, 60, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 3px solid #0055a5;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #003366;
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo span {
    font-size: 1rem;
    font-weight: 400;
    color: #4a6572;
    display: block;
    letter-spacing: 0.5px;
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #003366;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav-link:hover {
    border-bottom-color: #0055a5;
}

/* Menú desplegable (dropdown) */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    z-index: 100;
    border-top: 3px solid #0055a5;
}

.nav-item:hover .dropdown-content {
    display: grid;
}

.dropdown-content a {
    color: #1e2b37;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    transition: background 0.2s;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #e6f0fa;
    color: #003366;
}

/* Botón de contacto en navbar */
.btn-contacto-nav {
    background-color: #0055a5;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-contacto-nav:hover {
    background-color: #003366;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 0 3rem 0;
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
}

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

.hero h1 {
    color: #003366;
}

.hero h1 span {
    color: #0055a5;
    display: block;
    font-size: 2rem;
    margin-top: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #2a3f4f;
    margin-bottom: 2rem;
}

.btn-consulta {
    background-color: #0055a5;
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 8px 18px rgba(0, 85, 165, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-consulta:hover {
    background-color: #003366;
    transform: scale(1.02);
}

.hero-imagen {
    background-color: #d9e2e9;
    border-radius: 30px;
    height: 340px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300" width="400" height="300"><rect width="400" height="300" fill="%23b9cfdf"/><text x="40" y="160" font-family="Arial" font-size="24" fill="%23003366">⚖️ CLERP</text><text x="40" y="200" font-family="Arial" font-size="18" fill="%230055a5">Consultoría Legal</text></svg>');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 35px -8px rgba(0,40,60,0.2);
}

/* ===== BANNER DE EXPERIENCIA ===== */
.experiencia-banner {
    background-color: #003366;
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin: 2rem 0 0;
}

.experiencia-banner .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.exp-item {
    text-align: center;
}

.exp-numero {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.exp-texto {
    font-size: 1.2rem;
    font-weight: 500;
    color: #c9e1ff;
}

.exp-destacado {
    background-color: #0055a5;
    padding: 1rem 2rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
}

/* ===== SERVICIOS DESTACADOS ===== */
.servicios-destacados {
    padding: 4rem 0 2rem;
    background-color: white;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.servicio-card {
    background: #f5f9ff;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #d9e6f5;
    transition: transform 0.2s;
}

.servicio-card:hover {
    transform: translateY(-5px);
    border-color: #0055a5;
}

.servicio-titulo {
    font-size: 2rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1rem;
}

.servicio-desc {
    color: #2a4b6e;
    font-weight: 500;
}

/* ===== OFERTA ESPECIAL ===== */
.oferta-especial {
    background: linear-gradient(145deg, #f0f7ff 0%, #ffffff 100%);
    padding: 3rem;
    border-radius: 48px;
    margin: 3rem 0;
    border: 2px solid #0055a5;
    text-align: center;
}

.oferta-titulo {
    color: #003366;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.oferta-sub {
    color: #0055a5;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.oferta-desc {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #2a4b6e;
}

/* ===== ÁREAS DE PRÁCTICA COMPLETAS ===== */
.areas-practica {
    padding: 4rem 0;
    background-color: #f5f9ff;
}

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

.area-item {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    color: #003366;
    text-align: center;
    border: 1px solid #c9ddef;
    transition: all 0.2s;
}

.area-item:hover {
    background: #0055a5;
    color: white;
    border-color: #0055a5;
}

/* ===== CONTACTO ===== */
.contacto {
    padding: 4rem 0;
    background: white;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #f5f9ff;
    border-radius: 36px;
    padding: 3rem;
    border: 1px solid #c9ddef;
}

.contacto-correos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.correo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #003366;
}

.correo-item strong {
    color: #0055a5;
    min-width: 80px;
}

.contacto-icono {
    background: #0055a5;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #b8cde0;
    border-radius: 60px;
    font-family: inherit;
    margin-bottom: 1.2rem;
    background: white;
    font-size: 1rem;
}

.contacto-form textarea {
    border-radius: 30px;
    resize: vertical;
}

.btn-enviar {
    background-color: #0055a5;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.btn-enviar:hover {
    background-color: #003366;
}

/* ===== PIE DE PÁGINA ===== */
.footer {
    background: #002244;
    color: #b0c6d6;
    padding: 3rem 0;
    text-align: center;
}

.footer a {
    color: #8bb9ff;
    text-decoration: none;
}

.footer-correos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    h1 { font-size: 2.6rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-imagen { height: 250px; }
    .contacto-grid { grid-template-columns: 1fr; }
    .servicios-grid { grid-template-columns: 1fr; }
    .experiencia-banner .container { flex-direction: column; }
}

@media (max-width: 700px) {
    .navbar .container { flex-direction: column; gap: 1rem; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .dropdown-content { position: static; display: none; }
    .nav-item:hover .dropdown-content { display: grid; background: #f5f9ff; }
}