/* ==========================================================
   Shared CSS - Estilos base extraídos del index.html
   EMC2 Legal Abogados
   ========================================================== */

:root {
    --primary: #0a2540;
    --accent: #d4af37;
    --whatsapp: #25d366;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #555;
    --white: #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--primary); }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary);
    color: rgba(255,255,255,0.9);
    padding: 10px 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar i { color: var(--accent); margin-right: 5px; }

/* --- Header / Nav --- */
header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.1;
}

.logo img {
    height: 45px;
    width: auto;
}

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

.logo span {
    font-size: 0.8rem;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul { display: flex; gap: 25px; align-items: center; }
nav a { color: var(--primary); font-weight: 500; font-size: 0.95rem; }
nav a:hover, nav a.nav-active { color: var(--accent); }

.btn-header {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-header:hover { background-color: var(--accent); }

/* --- Buttons --- */
.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent);
    display: inline-block;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-align: center;
}
.btn-primary:hover { background-color: #bfa030; border-color: #bfa030; }

/* --- CTA Strip --- */
.cta-strip {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
    margin: 0;
}
.cta-strip h3 { color: var(--accent); margin-bottom: 10px; font-size: 2rem; }

/* --- Footer --- */
footer {
    background-color: #051626;
    color: #889bb0;
    padding: 60px 5% 20px;
    font-size: 0.9rem;
}
.footer-heading { color: white; margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #889bb0; }
.footer-links a:hover { color: var(--accent); }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}
.footer-bottom {
    border-top: 1px solid #1a3a5a;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--whatsapp); color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000; transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    nav ul { display: none; }
    .top-bar { flex-direction: column; text-align: center; gap: 5px; }
    .footer-grid { grid-template-columns: 1fr; }
}
