/* ==========================================================================
   Estilos Principales - Bufete de Abogados (Inspirado en TheLaw 5)
   ========================================================================== */

:root {
    --bg-dark: #121212;
    --bg-card: #1c1c1e;
    --bg-card-hover: #262629;
    --bg-nav: rgba(18, 18, 18, 0.92);
    --gold-primary: #ffdebd;
    --gold-secondary: #dcb996;
    --gold-gradient: linear-gradient(135deg, #ffdebd 0%, #dcb996 100%);
    --gold-gradient-hover: linear-gradient(135deg, #dcb996 0%, #c8a37e 100%);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dark: #121212;
    --border-color: rgba(255, 222, 189, 0.15);
    --border-color-hover: rgba(255, 222, 189, 0.4);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Style */
body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Text Gradient & Accent */
.text-gold {
    color: var(--gold-primary) !important;
}

.text-gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-gold-gradient {
    background: var(--gold-gradient);
    color: var(--text-dark);
}

/* Buttons */
.btn-gold {
    background: var(--gold-gradient);
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 222, 189, 0.2);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 222, 189, 0.35);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-primary) !important;
    border: 1px solid var(--gold-primary);
    font-weight: 600;
    padding: 11px 28px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: var(--text-dark) !important;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Navbar */
.navbar-law {
    background: #2e2e2e;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    transition: var(--transition-smooth);
}

.navbar-law.scrolled {
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand i {
    font-size: 1.8rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 8px;
    padding: 8px 12px !important;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary) !important;
    background: rgba(255, 222, 189, 0.08);
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    color: var(--gold-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 222, 189, 0.25);
}

/* Page Header / Hero Banner for Inner Pages */
.page-banner {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.6) 0%, var(--bg-dark) 100%), 
                radial-gradient(circle at top right, rgba(255, 222, 189, 0.08), transparent 50%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-law {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb-law a {
    color: var(--gold-primary);
}

/* Hero Section (Home) */
.hero-section {
    padding: 140px 0 100px;
    background: radial-gradient(circle at 80% 20%, rgba(255, 222, 189, 0.12) 0%, transparent 40%),
                linear-gradient(180deg, rgb(18, 18, 18) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-card-img {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-card-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.badge-experience {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold-primary);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-experience h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Counter / Stats Section */
.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Section Common */
.section-padding {
    padding: 90px 0;
}

.section-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin-bottom: 40px;
}
.text-muted{
    color: var(--text-muted) !important;
}

/* Cards (Practice Areas, Features, Team) */
.card-law {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 30px;
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
}

.card-law:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 222, 189, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.card-law:hover .card-icon {
    background: var(--gold-gradient);
    color: var(--text-dark);
}

.card-law h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.card-law p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.link-arrow {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-arrow:hover {
    gap: 10px;
    color: var(--text-white);
}

/* Team Card */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.team-img-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #252528;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

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

.team-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-info .role {
    color: var(--gold-primary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Process Step Card */
.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    height: 100%;
}

.process-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 222, 189, 0.15);
}

/* Accordion FAQ */
.accordion-law .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px !important;
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-law .accordion-button {
    background: var(--bg-card);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px 25px;
    box-shadow: none !important;
}

.accordion-law .accordion-button:not(.collapsed) {
    color: var(--gold-primary);
    background: rgba(255, 222, 189, 0.05);
}

.accordion-law .accordion-button::after {
    filter: invert(1) sepia(1) saturate(2) hue-rotate(350deg);
}

.accordion-law .accordion-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 20px 25px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

/* Contact Info Cards & Form */
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.contact-info-card:hover {
    border-color: var(--border-color-hover);
    transform: translateX(5px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: rgba(255, 222, 189, 0.1);
    color: var(--gold-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gracias{
    margin-top: 90px;
}

/* Banner CTA */
.cta-banner {
    background: linear-gradient(135deg, #1c1c1e 0%, #29292d 100%);
    border: 1px solid var(--gold-primary);
    border-radius: 24px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 222, 189, 0.15), transparent 70%);
    pointer-events: none;
}

/* Contenedor Principal del Formulario */
.form-card {
    background-color: #1c1c1e; /* Color oscuro del fondo original */
    border: 1px solid #2c2c2e;
    border-radius: 24px; /* Bordes redondeados según la imagen */
    max-width: 650px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Tipografías y Títulos */
.form-title {    
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.85rem;
    color: #a1a1aa; /* Color de texto secundario/grisáceo */
    line-height: 1.4;
    margin-bottom: 30px;
}

/* Etiquetas y asteriscos */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.text-danger-custom {
    color: #ffffff; /* Los asteriscos no contrastan como peligro, van en blanco/mismo color o beige en base a la imagen original */
}

/* Entradas de Datos (Inputs y Selects) */
.form-control, .form-select {
    background-color: #ffffff !important;
    color: #121212 !important;
    border: none;
    border-radius: 12px; /* Redondeado de inputs */
    padding: 12px 16px;
    font-size: 0.9rem;
}

.form-control::placeholder {
    color: #8e8e93;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(220, 180, 140, 0.3); /* Ligero focus basado en el tono del botón */
    border-color: transparent;
}

/* Grupo específico de entrada para Teléfono */
.phone-group {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.phone-prefix {
    background-color: #ffffff;
    color: #1c1c1e;
    border-right: 1px solid #383838;
    padding: 12px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    border-radius: 12px 0 0 12px !important;
}

.phone-input {
    border: none !important;
    border-radius: 0 12px 12px 0 !important;
    width: 100%;
}

/* Selector desplegable */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23121212' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 14px;
    padding-right: 40px;
}

/* Área de Texto (Textarea) */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Botón de Enviar (Color Beige/Dorado original) */
.btn-submit {
    background-color: #dcb38f; /* El tono crema/tostado del botón original */
    color: #121212; /* Texto oscuro para visibilidad */
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 50px; /* Bordes totalmente redondeados en cápsula */
    padding: 14px 20px;
    width: 100%;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.btn-submit:hover {
    background-color: #c99f7a; /* Oscurecimiento sutil en hover */
}

/* Footer */
.footer-law {
    background: #2e2e2e;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 30px;
    font-size: 0.95rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand i {
    color: var(--gold-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background: var(--gold-gradient);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ==========================================================================
   Floating Action Button (WhatsApp & Quick Call)
   ========================================================================== */
.floating-contact-container {
  position: fixed;
  bottom: 80px;
  right: 25px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient-hover);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;  
  transition: var(--transition);
  text-decoration: none;
}

.floating-wa-btn:hover {
  transform: scale(1.08) translateY(-3px);
  color: #fff;  
}

/* Media Queries Responsivas */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-card-img {
        margin-top: 40px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.1rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .cta-banner {
        padding: 35px 25px;
        text-align: center;
    }
    .badge-experience {
        padding: 12px 18px;
    }
    .badge-experience h3 {
        font-size: 1.7rem;
    }
}