/* ==========================================================================
Estilos Generales & Variables
========================================================================== */

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

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
color: #2b2b2b;
line-height: 1.6;
background-color: #fafafa;
display: flex;
flex-direction: column;
min-height: 100vh;
}

.container {
width: 90%;
max-width: 1100px;
margin: auto;
}

/* ==========================================================================
Header & Navegación
========================================================================== */
.header {
background: #1f2a44;
color: #fff;
border-bottom: 2px solid #b89b5e;
position: sticky;
top: 0;
z-index: 900;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-flex {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 0;
position: relative;
}

/* Logo con Icono Integrado */
.logo {

display: flex;
align-items: center;
gap: 12px;
font-family: 'Playfair Display', serif;

font-size: 1.5rem;

font-weight: 700;

letter-spacing: 0.5px;

color: #ffffff;
text-decoration: none;
}

.logo-img {
height: 44px;
width: auto;
object-fit: contain;
display: block;
filter: drop-shadow(0px 2px 5px rgba(184, 155, 94, 0.35));
transition: transform 0.3s ease;
}

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

.logo span {

color: #b89b5e;

font-weight: 400;

}

nav a {
margin-left: 24px;
text-decoration: none;
color: #e2e8f0;
font-weight: 500;
font-size: 0.95rem;
transition: color 0.3s ease;
}

nav a:hover, nav a.active {
color: #b89b5e;
}

.menu-toggle {
display: none;
font-size: 1.8rem;
cursor: pointer;
color: #fff;
}

/* ==========================================================================
Sección Hero (Banner Principal)
========================================================================== */
.hero {
background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
url('https://images.unsplash.com/photo-1521791136064-7986c2920216') center/cover no-repeat;
color: #fff;
padding: 40px 0;
text-align: center;
}

.hero h1 {
font-size: 2.8rem;
font-family: 'Playfair Display', serif;
margin-bottom: 16px;
line-height: 1.2;
}

.hero p {
font-size: 1.15rem;
color: #e2e8f0;
max-width: 650px;
margin: 0 auto 28px;
}

/* ==========================================================================
Componentes & Botones
========================================================================== */
.btn {
display: inline-block;
background: #b89b5e;
color: #fff;
padding: 14px 32px;
text-decoration: none;
border-radius: 6px;
font-weight: 600;
letter-spacing: 0.3px;
box-shadow: 0 4px 14px rgba(184, 155, 94, 0.3);
transition: all 0.3s ease;
}

.btn:hover {
background: #a3874e;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(184, 155, 94, 0.4);
}


/* ==========================================================================
   Fondo sutil con logo solo para el contenedor principal de Inicio
   ========================================================================== */
.index-container-bg {
  position: relative;
  /* Fondo con la imagen centrada y suavizada en opacidad */
  background-image: url('images/icon_jmm_sin_txt2.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/* Para pantallas móviles, ajusta el tamaño para que se aprecie correctamente */
@media (max-width: 768px) {
  .index-container-bg {
    background-size: 80% auto;
  }
}

/* ==========================================================================
   Transparencia del 50% en las tarjetas del Inicio
   ========================================================================== */
.index-container-bg .card {
  /* Fondo blanco al 50% de opacidad para transparente sutil */
  background-color: rgba(255, 255, 255, 0.7); 
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* El efecto hover se mantiene exactamente con el resplandor e iluminación actual */
.index-container-bg .card:hover {
  background-color: #ffffff; /* O si prefieres que conserve el 50% en hover, puedes remover esta línea */
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(31, 42, 68, 0.12), 0 0 0 1px rgba(184, 155, 94, 0.35);
}


/* ==========================================================================
Secciones, Tarjetas & Módulos
========================================================================== */
.section {
padding: 30px 0;
}

.section-title {
font-family: 'Playfair Display', serif;
font-size: 2.2rem;
color: #1f2a44;
margin-bottom: 8px;
}

.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
}

.feature-box {
background: #ffffff;
padding: 35px;
border-radius: 8px;
border: 1px solid #e2e8f0;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.feature-box h2 {
font-family: 'Playfair Display', serif;
color: #1f2a44;
margin-bottom: 14px;
font-size: 1.6rem;
}

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

.card {
background: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid #edf2f7;
}

.card:hover {
transform: translateY(-4px);
box-shadow: 0 18px 40px rgba(31, 42, 68, 0.12), 0 0 0 1px rgba(184, 155, 94, 0.35);
}

.card h3 {
font-family: 'Playfair Display', serif;
color: #1f2a44;
margin-bottom: 12px;
font-size: 1.3rem;
}

.card p {
color: #4a5568;
font-size: 0.95rem;
text-align: justify;
text-justify: inter-word;
hyphens: auto;
}

.hr {
background-color: #b89b5e;
height: 3px;
border: none;
border-radius: 2px;
margin-top: 10px;
}

/* Formulario & Mapas */
.form input, .form textarea {
width: 100%;
padding: 14px;
margin-bottom: 18px;
border: 1px solid #cbd5e1;
border-radius: 6px;
font-family: inherit;
font-size: 0.95rem;
}

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

.form button {
background: #1f2a44;
color: #fff;
padding: 14px 28px;
border: none;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s ease;
}

.form button:hover {
background: #0f172a;
}

.map iframe {
width: 100%;
height: 380px;
border: 0;
border-radius: 8px;
margin-top: 20px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ==========================================================================
Sección Perfil / Foto del Abogado
========================================================================== */
.perfil-grid {
display: grid;
grid-template-columns: 320px 1fr;
gap: 30px;
align-items: start;
margin-top: 20px;
}

.perfil-foto-card {
width: 100%;
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
border: 1px solid #edf2f7;
}

.perfil-img {
display: block;
width: 100%;
height: 380px;
object-fit: cover;
object-position: center top;
}

/* ==========================================================================
Botón Flotante de WhatsApp
========================================================================== */
.whatsapp {
position: fixed;
bottom: 25px;
right: 25px;
background: #25D366;
color: #fff;
width: 56px;
height: 56px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
z-index: 1000;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp:hover {
transform: scale(1.08);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp img {
width: 30px;
height: 30px;
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
background: #1f2a44;
color: #e2e8f0;
text-align: center;
/*padding: 25px 0;*/
margin-top: auto;
border-top: 1px solid rgba(184, 155, 94, 0.2);
width: 100%;
}

/* ==========================================================================
Media Queries (Responsive Mobile & Tablet)
========================================================================== */
@media (max-width: 768px) {
.logo {
font-size: 1.2rem;
gap: 8px;
}

.logo-img {
height: 34px;
}

.hero {
padding: 60px 0;
}

.hero h1 {
font-size: 2.1rem;
}

.grid {
grid-template-columns: 1fr;
gap: 25px;
}

nav {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: #1f2a44;
width: 100%;
text-align: center;
padding: 15px 0;
z-index: 1000;
border-bottom: 2px solid #b89b5e;
box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

nav.open {
display: block;
}

nav a {
display: block;
margin: 15px 0;
color: #fff;
}

.menu-toggle {
display: block;
}

/* Ajuste de Perfil en Móviles */
.perfil-grid {
grid-template-columns: 1fr;
gap: 20px;
}

.perfil-img {
height: 320px;
}
}