/* ==========================================================================
   STYLE.CSS - VERSIÓN 22.0 (FINAL Y ORGANIZADA)
   ========================================================================== */

/* =======================================================
   1. RESET Y CONFIGURACIÓN BASE
   ======================================================= */
* { 
    margin: 0; 
    padding: 0; 
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    -webkit-text-size-adjust: 100%;
}

body { 
    font-family: "Georgia", serif; 
    color: #1f2d2a; 
    background-color: #ffffff; 
    width: 100%; 
    overflow-x: hidden; 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/* --- Reseteo de Inputs y Botones --- */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="date"], 
input[type="time"], 
textarea, 
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* Mantenemos estilo nativo para Radio y Checkbox */
input[type="radio"], 
input[type="checkbox"] {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
}

/* =======================================================
   2. HEADER Y NAVEGACIÓN (PC)
   ======================================================= */
.header { 
    background: #ffffff; 
    border-bottom: 1px solid #e6e6e6; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%; 
}

.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    min-height: 90px; 
}

.logo-link { flex-shrink: 0; }
.logo { height: 55px; width: auto; }

.nav { display: flex; align-items: center; }
.nav a { 
    margin-left: 28px; 
    text-decoration: none; 
    color: #1f2d2a; 
    font-size: 15px; 
    transition: 0.3s; 
}
.nav a:hover { 
    transform: translateY(-2px); 
    color: #1b5b46; 
}

.hamburger { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 32px; 
    color: #1b5b46; 
    cursor: pointer; 
}

/* =======================================================
   3. SECCIÓN HERO (PORTADA)
   ======================================================= */
.hero { 
    background: linear-gradient(90deg, #3e5b4f 0%, #0f3b2d 50%, #3e5b4f 100%);
    padding: 90px 0 180px; 
    text-align: center; 
    color: white; 
}

.hero h1 { 
    font-size: 42px; 
    line-height: 1.3; 
    margin-bottom: 30px; 
    font-weight: 400; 
    max-width: 900px; 
    margin-left: auto; 
    margin-right: auto; 
}

.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
}

.btn { 
    padding: 12px 25px; 
    font-size: 15px; 
    text-decoration: none; 
    border-radius: 4px; 
    display: inline-block; 
    transition: 0.3s; 
    cursor: pointer;
}
.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}
.btn-primary { background: #1b5b46; color: #ffffff; }
.btn-outline { background: #ffffff; color: #1b5b46; border: 1px solid #1b5b46; }

/* =======================================================
   4. SECCIONES HOME (SOBRE NOSOTROS & PRÁCTICA)
   ======================================================= */
.about-section-exact { 
    width: 100%; 
    background-color: #ffffff; 
    background-image: url('../img/puntos buenos.png'); 
    background-position: top center; 
    background-repeat: no-repeat; 
    background-size: 100% auto; 
    margin-top: -150px; 
    padding-top: 100px; 
    padding-bottom: 80px; 
    position: relative; 
    z-index: 6; 
}

.about-container { display: flex; align-items: flex-start; }
.about-text-area { 
    flex: 0 0 40%; 
    padding: 0 20px; 
    margin-top: -15px; 
    position: relative; 
    z-index: 10; 
}
.about-text-area h2 { font-size: 46px; font-weight: normal; margin-bottom: 30px; }
.intro { font-size: 20px; margin-bottom: 25px; font-weight: bold; }
.description { font-size: 17px; color: #444; line-height: 1.6; }

.about-image-area { 
    flex: 0 0 60%; 
    display: flex; 
    justify-content: flex-end; 
    margin-top: -95px; 
    transform: translateX(100px); 
}
.lawyer-photo-final { 
    width: 100%; 
    max-width: none; 
    transform: scale(1.35); 
    transform-origin: center top; 
    border-radius: 20px; 
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2)); 
}

.practice-section { 
    padding: 80px 0 60px; 
    background: white; 
    position: relative; 
    z-index: 5; 
}
.practice-title { font-size: 46px; font-weight: normal; margin-bottom: 50px; padding-left: 20px; }
.practice-grid { 
    display: flex; 
    justify-content: space-between; 
    gap: 40px; 
    border: 1px solid #d1d1d1; 
    padding: 60px 40px; 
    margin: 0 20px; 
}
.practice-item { 
    flex: 1; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}
.practice-icon { 
    height: 80px; 
    width: auto; 
    margin-bottom: 30px; 
    filter: brightness(0) saturate(100%) invert(27%) sepia(18%) saturate(1269%) hue-rotate(107deg) brightness(94%) contrast(92%); 
}
.practice-item h3 { font-size: 24px; font-weight: normal; margin-bottom: 15px; }

/* =======================================================
   5. SECCIÓN CONTACTO (FORMULARIOS)
   ======================================================= */
.contact-modern-section { 
    padding: 60px 0 100px; 
    background-image: url('../img/fondo contacto.png'); 
    background-size: cover; 
    background-position: center; 
}
.contact-header-centered { text-align: center; max-width: 900px; margin: 0 auto 60px; }
.breadcrumb { font-size: 14px; color: #555; margin-bottom: 20px; }
.contact-header-centered h2 { font-size: 56px; font-weight: normal; margin-bottom: 10px; }
.subtitle { font-size: 24px; margin-bottom: 30px; color: #333; }
.intro-text p { font-size: 18px; line-height: 1.6; }

.contact-modern-layout { display: flex; gap: 50px; align-items: flex-start; }
.modern-card { 
    background: #ffffff; 
    padding: 40px; 
    border-radius: 5px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
}

.agenda-data { display: flex; flex-direction: column; }
.form-side { flex: 6; }
.form-side h3 { font-size: 32px; margin-bottom: 15px; font-weight: normal; }
.form-instruction { margin-bottom: 30px; font-size: 16px; color: #444; }

.modern-form { display: flex; flex-direction: column; gap: 15px; }
.form-row-double { display: flex; gap: 20px; }
.modern-input { 
    width: 100%; 
    padding: 15px; 
    border: 1px solid #eee; 
    background: #f9f9f9; 
    font-size: 16px; 
    font-family: inherit; 
    box-sizing: border-box; 
}
.modern-textarea { height: 120px; resize: none; }

.btn-modern-submit { 
    background: #1f3a33; 
    color: white; 
    padding: 15px 40px; 
    border: none; 
    font-size: 18px; 
    cursor: pointer; 
    align-self: flex-start; 
    font-family: "Georgia", serif; 
    margin-top: 10px; 
    transition: 0.3s; 
}
.btn-modern-submit:hover { background: #2a4d44; transform: translateY(-2px); }
.legal-text { font-size: 12px; color: #777; margin-top: 15px; font-style: italic; }

.info-side-column { flex: 4; display: flex; flex-direction: column; gap: 30px; }
.modern-info-item { display: flex; align-items: center; margin-bottom: 35px; }
.modern-icon, .agenda-icon-title { 
    width: 45px; height: 45px; object-fit: contain; margin-right: 20px; flex-shrink: 0; filter: brightness(0); 
}
.text-group strong { display: block; font-size: 18px; margin-bottom: 5px; }
.text-group span { font-size: 16px; color: #555; overflow-wrap: anywhere; word-break: break-word; }

.agenda-title-row { display: flex; align-items: center; margin-bottom: 15px; }
.agenda-title-row h3 { font-size: 26px; font-weight: normal; margin: 0; }

.btn-modern-agenda { 
    display: flex; align-items: center; justify-content: center; 
    background: #1f3a33; color: white; text-decoration: none; 
    padding: 14px 20px; font-size: 18px; transition: 0.3s; 
    font-family: "Georgia", serif; width: 100%; margin-top: 30px; margin-bottom: 30px; cursor: pointer; 
}
.btn-modern-agenda:hover { background: #2a4d44; transform: translateY(-2px); }
.btn-icon-inner { width: 22px; margin-right: 10px; filter: brightness(0) invert(1); }
.location-mini { margin-top: 0; display: flex; align-items: flex-start; }
.mini-pin { width: 20px; margin-right: 10px; margin-top: 3px; }

/* =======================================================
   6. PÁGINA "LA FIRMA"
   ======================================================= */
.firm-page-container { padding: 80px 0 100px; background-color: #ffffff; }
.firm-header-block { margin-bottom: 50px; position: relative; z-index: 2; }
.firm-page-title { font-size: 52px; font-weight: normal; margin-bottom: 5px; color: #1f2d2a; font-family: "Georgia", serif; }
.firm-breadcrumb { font-size: 16px; color: #666; margin-top: 0; }

.firm-main-content { 
    display: flex; gap: 60px; align-items: center; 
    margin-bottom: 100px; position: relative; z-index: 2; 
}
.firm-image-wrapper { flex: 1; }
.firm-main-image { width: 100%; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: block; }
.firm-text-wrapper { flex: 1; }

.firm-subtitle { font-size: 48px; font-weight: normal; margin-bottom: 30px; color: #1f2d2a; }
.firm-description { font-size: 19px; line-height: 1.6; color: #333; text-align: left; }

.values-title { font-size: 42px; font-weight: normal; text-align: center; margin-bottom: 60px; color: #1f2d2a; }
.values-grid { display: flex; gap: 30px; justify-content: space-between; width: 100%; }

/* Tarjetas de Valores (PC) */
.value-card { 
    flex: 1; 
    background-image: url('../img/la firma 5.png'); 
    background-size: cover; 
    background-position: center; 
    padding: 50px 30px; 
    border-radius: 12px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    transition: transform 0.3s ease; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}
.value-card:hover { transform: translateY(-5px); }
.value-icon-box { margin-bottom: 25px; height: 60px; display: flex; align-items: center; justify-content: center; }
.value-icon { width: 50px; height: auto; object-fit: contain; }
.value-card h4 { font-size: 22px; margin-bottom: 15px; font-weight: normal; color: #1f2d2a; }
.value-card p { font-size: 15px; line-height: 1.5; color: #444; }

/* =======================================================
   7. FOOTER (PREMIUM & LIMPIO)
   ======================================================= */
.footer-new-container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto 50px; 
    position: relative; 
    z-index: 10; 
}
.footer-new-block { 
    background: radial-gradient(circle at 90% 10%, #1b4f46, #0e2d26); 
    box-shadow: 0 25px 50px -12px rgba(14, 45, 38, 0.4); 
    border-radius: 30px; 
    padding: 60px 80px; 
    color: #ffffff; 
    overflow: hidden; 
    position: relative; 
}
.footer-new-block::before { 
    content: ""; position: absolute; top: 0; left: 0; right: 0; 
    height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); 
}

.footer-content-row { display: flex; justify-content: space-between; margin-bottom: 50px; flex-wrap: wrap; gap: 50px; padding-top: 20px; }
.footer-links-col { display: flex; flex-direction: column; gap: 18px; }
.footer-link { 
    color: #e0e0e0; text-decoration: none; font-size: 17px; 
    font-weight: 300; transition: all 0.3s ease; position: relative; width: fit-content; 
}
.footer-link::after { 
    content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; 
    background-color: #ffffff; transition: width 0.3s ease; 
}
.footer-link:hover { color: #ffffff; opacity: 1; }
.footer-link:hover::after { width: 100%; }

.footer-location-col { display: flex; flex-direction: column; gap: 20px; min-width: 300px; }
.footer-loc-item { display: flex; align-items: flex-start; font-size: 17px; color: #e0e0e0; font-weight: 300; }
.footer-loc-icon { width: 22px; margin-right: 15px; margin-top: 3px; filter: brightness(0) invert(1); opacity: 0.8; }

/* Redes Sociales (Blancas) */
.footer-social-icons {
    display: flex; flex-direction: row; gap: 20px; margin-top: 15px; 
    justify-content: flex-start; padding-left: 37px; 
}
.social-icon-img { 
    width: auto; height: 28px; object-fit: contain; transition: transform 0.3s ease; 
    filter: brightness(0) invert(1); opacity: 1; 
}
.social-icon-img:hover { transform: scale(1.2); opacity: 1; }

.footer-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); margin-bottom: 30px; }
.footer-bottom-row { text-align: center; font-size: 14px; opacity: 0.6; display: flex; justify-content: center; gap: 20px; font-weight: 300; letter-spacing: 0.5px; text-transform: uppercase; }

/* =======================================================
   8. ESTILOS DEL MODAL (POPUP)
   ======================================================= */
.modal-backdrop { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.7); z-index: 9999; 
    display: flex; justify-content: center; align-items: center; 
    opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 20px; 
}
.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-wrapper { 
    background-color: #1f3a33; width: 100%; max-width: 750px; 
    max-height: 90vh; overflow-y: auto; position: relative; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid #1b5b46; 
}
.close-modal-btn { 
    position: absolute; top: 15px; right: 20px; 
    color: white; font-size: 30px; font-weight: bold; cursor: pointer; z-index: 10; 
}

.modal-header-text { text-align: center; color: white; padding: 30px 20px 20px; }
.modal-header-text h2 { font-family: "Georgia", serif; font-size: 32px; margin-bottom: 5px; font-weight: normal; }
.modal-header-text p { font-size: 14px; opacity: 0.8; font-style: italic; }

.modal-paper-card { 
    background-color: #fcfcfc; margin: 0 20px 20px; padding: 40px; 
    color: #1f2d2a; box-shadow: inset 0 0 20px rgba(0,0,0,0.05); 
}
.form-title-inner { text-align: center; font-size: 28px; margin-bottom: 20px; font-weight: normal; color: #000; }
.form-desc-inner { text-align: center; font-size: 15px; line-height: 1.6; color: #444; margin-bottom: 20px; }
.form-divider { border: 0; border-top: 1px solid #ddd; margin-bottom: 25px; }

.agenda-grid-form { display: flex; flex-direction: column; gap: 15px; }
.section-label { font-size: 16px; margin-bottom: 8px; margin-top: 10px; font-weight: normal; color: #000; }
.input-agenda { 
    width: 100%; padding: 12px; border: 1px solid #ccc; 
    background: #fdfdfd; font-family: inherit; font-size: 15px; 
    border-radius: 4px; box-sizing: border-box; 
}

.cols-2-group { display: flex; gap: 30px; justify-content: space-between; }
.col-left, .col-right { flex: 1; }
.check-row, .radio-group label { display: block; font-size: 14px; margin-bottom: 8px; cursor: pointer; }
.radio-group { display: flex; gap: 15px; }
.date-row { display: flex; gap: 15px; flex-wrap: wrap; width: 100%; }
.date-row .input-agenda { flex: 1; min-width: 130px; }

.submit-container { text-align: center; margin-top: 20px; }
.btn-submit-agenda { 
    background-color: #1f3a33; color: white; padding: 15px 40px; border: none; 
    font-size: 18px; cursor: pointer; transition: 0.3s; 
    font-family: "Georgia", serif; width: 100%; max-width: 300px; 
}
.btn-submit-agenda:hover { background-color: #2a4d44; transform: translateY(-2px); }
.disclaimer-text { font-size: 11px; text-align: center; margin-top: 20px; color: #666; font-style: italic; line-height: 1.4; }
.success-box { text-align: center; padding: 40px 0; }
.check-animation { font-size: 50px; color: #1b5b46; margin-bottom: 20px; }

/* =======================================================
   9. ESTILOS PÁGINAS "EQUIPO" Y "ÁREAS"
   ======================================================= */
.team-page-wrapper { padding: 60px 0 100px; background-color: #ffffff; }
.team-header-top { margin-bottom: 20px; border-left: 4px solid #1b5b46; padding-left: 15px; }
.team-small-title { font-size: 36px; font-weight: normal; color: #1f2d2a; line-height: 1.2; margin-bottom: 5px; }
.team-breadcrumb { font-size: 14px; color: #666; }
.team-main-title { font-size: 56px; text-align: center; font-weight: normal; margin: 40px 0 50px; color: #1f2d2a; font-family: "Georgia", serif; }
.team-text-content { max-width: 900px; margin: 0 auto 60px; text-align: center; }
.team-description-big { font-size: 20px; line-height: 1.6; margin-bottom: 30px; color: #1f2d2a; }
.team-description-small { font-size: 18px; color: #444; }
.team-image-container { width: 100%; margin-top: 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.team-main-photo { width: 100%; height: auto; display: block; }

.footer-banner-container { width: 100%; margin-top: 50px; line-height: 0; background-color: #1f3a33; }
.footer-banner-img { width: 100%; height: auto; display: block; }

.areas-page-wrapper { padding: 60px 0 100px; background-color: #ffffff; }
.areas-hero-container { width: 100%; margin-top: 20px; margin-bottom: 60px; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.areas-hero-img { width: 100%; height: auto; display: block; }

.areas-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 60px; }
.area-card { 
    background-color: #f4f4f4; padding: 30px 20px; border-radius: 10px; 
    text-align: center; transition: transform 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}
.area-card:hover { transform: translateY(-5px); }
.area-card-icon { width: 55px; height: auto; margin: 0 auto 15px; display: block; }
.area-card h3 { font-size: 20px; color: #1f2d2a; font-weight: normal; margin-bottom: 12px; font-family: "Georgia", serif; }
.area-card p { font-size: 14px; color: #555; line-height: 1.5; }

/* =======================================================
   10. SECCIÓN EXPERIENCIA (ESCRITORIO - ORIGINAL)
   ======================================================= */
.experience-section-wrapper {
    background-color: #e6e6e6; padding: 80px 60px; margin: 60px 0; border-radius: 15px; width: 100%;
}
.experience-main-title {
    text-align: center; font-size: 56px; margin-bottom: 60px; font-weight: normal; color: #000; font-family: "Georgia", serif;
}
.experience-grid { display: flex; gap: 60px; max-width: 1100px; margin: 0 auto; }

/* Columna Izquierda (Trayectoria) */
.exp-col-left { flex: 1.3; display: flex; flex-direction: column; gap: 40px; }
.exp-item { display: flex; gap: 25px; align-items: flex-start; }
.exp-icon { width: 45px; height: auto; object-fit: contain; margin-top: 5px; flex-shrink: 0; }
.exp-content h3 { font-size: 26px; margin-bottom: 10px; color: #1f2d2a; font-weight: normal; font-family: "Georgia", serif; }
.exp-content p { font-size: 16px; color: #333; line-height: 1.5; margin: 0; }

/* Columna Derecha (Cifras) */
.exp-col-right { flex: 0.8; border-left: 1px solid #777; padding-left: 60px; display: flex; flex-direction: column; }
.stats-title { font-size: 42px; margin-bottom: 40px; font-weight: normal; color: #000; font-family: "Georgia", serif; }
.stat-item { display: flex; align-items: center; gap: 25px; padding: 30px 0; border-bottom: 1px solid #999; }
.stat-item:last-child { border-bottom: none; }
.stat-icon { width: 90px; height: 90px; object-fit: contain; flex-shrink: 0; }
.stat-text { font-size: 16px; line-height: 1.4; color: #333; }

/* ====================================================================
   11. ZONA DE BLINDAJE MÓVIL Y TABLET
   ==================================================================== */
@media (max-width: 1024px) {
  /* --- Ajustes Generales --- */
  html { -webkit-text-size-adjust: 100%; box-sizing: border-box; }
  body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .container { width: 92%; max-width: 520px; margin: 0 auto; padding: 0; }
  
  /* --- Header Móvil --- */
  .header-inner { flex-wrap: wrap; padding: 20px 0 15px; justify-content: space-between; }
  .logo { height: 42px; width: auto; }
  .logo-link { max-width: 70%; display: block; }
  .hamburger { display: block; margin-left: auto; cursor: pointer; }
  .nav { 
      width: 100%; background: #ffffff; flex-direction: column; max-height: 0; 
      overflow: hidden; transition: max-height 0.4s ease-out; border-top: 1px solid #f0f0f0; margin-top: 15px; position: static; 
  }
  .nav.active { max-height: 600px; padding-bottom: 20px; }
  .nav a { width: 100%; text-align: center; padding: 18px; border-bottom: 1px solid #f9f9f9; margin: 0; font-size: 16px; }
  
  /* --- Hero y Textos Móvil --- */
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: clamp(28px, 6vw, 36px); padding: 0 5px; }
  .hero-buttons { flex-direction: column; gap: 15px; align-items: center; }
  .btn { width: 90%; max-width: 380px; padding: 16px; border-radius: 50px; }
  
  .about-text-area h2 { text-align: center; font-size: clamp(28px, 6vw, 36px); }
  .about-section-exact { margin-top: 0; padding-top: 50px; padding-bottom: 60px; }
  .about-container { flex-direction: column; gap: 35px; }
  .about-text-area { padding: 0; text-align: left; }
  .about-image-area { width: 100% !important; margin-top: 20px !important; display: flex !important; justify-content: center !important; padding: 0 !important; transform: none !important; }
  .lawyer-photo-final { transform: none !important; width: 100% !important; max-width: 500px !important; margin: 0 auto !important; border-radius: 12px; }
  
  .practice-section { padding: 60px 0; }
  .practice-grid { flex-direction: column; gap: 45px; padding: 40px 30px; border: 1px solid #eee; border-radius: 12px; }
  .practice-title { text-align: center; font-size: clamp(28px, 6vw, 36px); padding-left: 0; }
  
  /* --- Contacto Móvil --- */
  .contact-modern-section { padding: 60px 0; }
  .contact-header-centered h2 { font-size: clamp(30px, 6vw, 38px); }
  .contact-modern-layout { flex-direction: column; gap: 45px; }
  .modern-card { width: 100%; padding: 25px 15px; }
  .form-row-double { flex-direction: column; gap: 20px; }
  .btn-modern-submit, .btn-modern-agenda { width: 100%; text-align: center; padding: 18px; border-radius: 50px; }
  
  /* --- Footer Móvil --- */
  .footer-new-container { width: 92%; max-width: 100%; margin-bottom: 40px; box-sizing: border-box; margin-left: auto; margin-right: auto; }
  .footer-new-block { padding: 40px 20px; text-align: center; width: 100%; box-sizing: border-box; }
  .footer-content-row { flex-direction: column; gap: 40px; align-items: center; }
  .footer-links-col, .footer-location-col { align-items: center; width: 100%; }
  .footer-loc-item { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom-row { flex-direction: column; gap: 10px; }
  .footer-separator { display: none; }

  /* --- Modales Móvil --- */
  .modal-paper-card { padding: 25px 20px; margin: 0 10px 15px; }
  .cols-2-group { flex-direction: column; gap: 0; }
  .date-row { display: flex; gap: 15px; flex-wrap: wrap; width: 100%; }
  .date-row .input-agenda { flex: 1; min-width: 130px; }
  .modal-header-text h2 { font-size: 26px; }
  .form-title-inner { font-size: 22px; }
  
  /* --- La Firma Móvil --- */
  .firm-main-content { flex-direction: column; gap: 40px; }
  .firm-image-wrapper, .firm-text-wrapper { width: 100%; }
  
  /* --- TARJETA DE VALORES (Android Blindado) --- */
  .values-grid { flex-direction: column; gap: 30px; }
  .value-card { 
      width: 100%;
      min-height: 320px; /* Fuerza altura para diseño cuadrado */
      height: auto;
      padding: 40px 35px !important; /* Padding ancho para centrar texto */
      border-radius: 25px;
      box-sizing: border-box;
      word-wrap: break-word;
      overflow-wrap: break-word;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  }
  /* Forzamos ancho máximo al párrafo para que sea un bloque compacto */
  .value-card p {
      max-width: 90%; 
      margin: 0 auto; 
  }
  
  /* --- Áreas Móvil --- */
  .areas-cards-grid { grid-template-columns: 1fr; gap: 15px; padding: 0 10px; }
  
  /* --- Experiencia Móvil --- */
  .timeline-line { display: none; }
  .timeline-row { flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
  .timeline-date { width: 100%; text-align: center; padding-right: 0; margin-bottom: 10px; }
  .timeline-content { padding-left: 0; }

  .experience-section-wrapper { padding: 50px 20px; background-color: #f4f4f4; }
  .experience-main-title { font-size: 32px; margin-bottom: 40px; line-height: 1.2; }
  .experience-grid { flex-direction: column; gap: 50px; }

  .exp-col-left { gap: 25px; }
  .exp-item {
      background-color: #ffffff;
      padding: 25px 20px;
      border-radius: 12px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      flex-direction: column;
      align-items: center;
      text-align: center;
      height: auto; 
      word-wrap: break-word;
      overflow-wrap: break-word;
  }
  .exp-icon { width: 60px; height: auto; margin-top: 0; margin-bottom: 15px; }
  .exp-content h3 { font-size: 20px; font-weight: bold; margin-bottom: 8px; color: #1b5b46; }
  .exp-content p { font-size: 15px; color: #555; }

  .exp-col-right {
      border-left: none; padding-left: 0; border-top: 2px solid #ddd; padding-top: 40px;
      display: flex; flex-direction: column; gap: 20px;
  }
  
  .stats-title { text-align: center; font-size: 28px; margin-bottom: 20px; }
  .stat-item {
      flex-direction: column; text-align: center; background-color: #ffffff;
      padding: 30px 20px; border-radius: 10px; border-bottom: none;
      box-shadow: 0 3px 10px rgba(0,0,0,0.03);
      width: 100%; 
      height: auto; 
      word-wrap: break-word;
      overflow-wrap: break-word;
  }
  .stat-icon { width: 60px; height: 60px; margin-bottom: 15px; }
  .stat-text { font-size: 15px; line-height: 1.4; }
}

/* =======================================================
   12. REGLAS ESPECIALES
   ======================================================= */

/* Móvil Vertical */
@media (max-width: 768px) and (orientation: portrait) {
    .footer-social-icons {
        padding-left: 0;
        justify-content: center;
        width: 100%;
    }
}

/* Landscape / Tablet */
@media (orientation: landscape) and (max-height: 600px) {
    .modal-wrapper { align-items: flex-start; padding-top: 20px; padding-bottom: 20px; }
    .modal-paper-card { max-height: 85vh; overflow-y: auto; }
    .hero { min-height: auto; padding: 80px 0 60px 0; }
}

/* ====================================================================
   13. FIX FINAL: TÍTULOS EN MÓVIL (PEQUEÑOS & 1 LÍNEA)
   ==================================================================== */
@media (max-width: 480px) {
    
    /* A) Título de la Portada (Debe poder bajar de renglón porque es largo) */
    .hero h1 {
        white-space: normal !important;
        font-size: 32px !important;
        line-height: 1.2;
        padding: 0 10px;
        word-wrap: break-word;
    }

    /* B) Título "Peña Cortés & Co." (Debe ser una sola línea y pequeño) */
    .firm-subtitle {
        font-size: 20px !important;     /* Tamaño exacto para que quepa */
        white-space: nowrap !important; /* Fuerza una sola línea */
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        padding: 0;
    }

    /* Contenedor seguro */
    .firm-header-block {
        overflow: hidden; 
        width: 100%;
    }
}