/* ============================================
   ESTUDIO JURÍDICO - ESTILOS GLOBALES
   Paleta: #6E3B12 (marrón), #D4B07A (dorado), #111111 (negro), #FAF7F2 (crema)
   ============================================ */

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

:root {
    --primary: #6E3B12;
    --secondary: #D4B07A;
    --dark: #111111;
    --light: #FAF7F2;
    --gray: #666666;
    --border: #E0E0E0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-section:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

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

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--secondary);
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Navigation Desktop */
.nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    background: none;
    border: none;
    color: var(--dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

/* Navigation Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #5a2d0c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(110, 59, 18, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 59, 18, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--light);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Ajuste específico para móviles para que la fachada se vea mejor */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        margin-top: 0;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        overflow: hidden;
    }
    .hero-background {
        background-position: center center;
        background-size: cover;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-weight: 800;
}

.hero-title .highlight {
    color: #ffffff;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary);
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    color: var(--secondary);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICIOS SECTION
   ============================================ */

.servicios {
    background: var(--light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(110, 59, 18, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

.service-footer {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
}

.service-footer p {
    margin-bottom: 1rem;
    color: var(--gray);
}

/* ============================================
   POR QUÉ ELEGIR NOS
   ============================================ */

.por-que {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #f0ebe0;
    transform: translateY(-3px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.commitment-section {
    background: var(--light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.commitment-section h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--dark);
}

.commitment-list {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    display: inline-block;
}

.commitment-list li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.commitment-list li:before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ============================================
   TESTIMONIOS SECTION
   ============================================ */

.testimonios {
    background: var(--light);
    overflow: hidden;
}

.google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.google-logo {
    width: 24px;
    height: 24px;
}

.google-text-badge {
    font-weight: 600;
    color: var(--dark);
}

.google-stars {
    color: #FBBC05;
}

.testimonios-slider-container {
    position: relative;
    width: 100%;
    cursor: grab;
}

.testimonios-slider-container:active {
    cursor: grabbing;
}

.testimonios-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.1s linear;
    will-change: transform;
}

.testimonial-card {
    min-width: 350px;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark);
}

.google-icon-small {
    width: 18px;
    height: 18px;
}

.stars {
    color: #FBBC05;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--gray);
    font-style: italic;
    line-height: 1.6;
}

.testimonios-footer {
    text-align: center;
    margin-top: 3rem;
}

.testimonios-footer p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-weight: 500;
}

/* ============================================
   SOBRE NOSOTROS
   ============================================ */

.sobre {
    background: white;
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 1.1rem;
}

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

.value-item h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.value-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    background: var(--light);
    padding: 2rem;
    border-radius: 1rem;
}

.mission h4, .vision h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* ============================================
   CONTACTO & MAPA
   ============================================ */

.contacto {
    background: var(--light);
}

.location-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.location-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.location-city {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
}

.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 400px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.footer-section h5 {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--secondary);
    margin: 0 0.5rem;
}

.footer-links span {
    color: #666;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */

.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-mobile.active {
        display: flex;
    }

    .header-content {
        padding: 0.75rem 0;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.55rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .servicios-grid, .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .values-grid, .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-button img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        margin-top: 60px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .service-card, .feature-card, .testimonial-card {
        padding: 1.5rem;
    }

    .values-grid, .stats {
        grid-template-columns: 1fr;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-card, .feature-card, .testimonial-card {
    animation: slideIn 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }

/* ============================================
   DEFENSA ESTRATÉGICA SECTION
   ============================================ */

.defensa-estrategica {
    padding: 5rem 0;
    background: white;
}

.defensa-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.defensa-content .section-label {
    color: #28a745; /* Verde restaurado */
    background: rgba(40, 167, 69, 0.1);
}

.defensa-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.defensa-content p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.defensa-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.defensa-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--dark);
}

.defensa-list li::before {
    content: "✓";
    color: #28a745; /* Verde para el check */
    font-weight: bold;
    font-size: 1.2rem;
}

.defensa-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.defensa-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.defensa-image-container:hover .defensa-image {
    transform: scale(1.05);
}

.defensa-quote {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-left: 4px solid #28a745;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    font-weight: 600;
    color: var(--dark);
}

@media (max-width: 992px) {
    .defensa-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .defensa-content {
        order: 1; /* Texto primero */
    }
    
    .defensa-image-container {
        order: 2; /* Imagen después del texto */
    }
}

/* ============================================
   SITUACIÓN CRÍTICA SECTION
   ============================================ */

.situacion-critica {
    padding: 5rem 0;
    background: #fdfdfd;
    border-bottom: 1px solid var(--border);
}

.critica-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.critica-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.critica-image {
    width: 100%;
    height: auto;
    display: block;
}

.critica-content .section-label {
    color: #dc3545; /* Rojo para la urgencia */
    background: rgba(220, 53, 69, 0.1);
}

.critica-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--dark);
}

.critica-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.critica-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.critica-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    color: var(--dark);
}

.critica-list li::before {
    content: "!";
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.critica-highlight-box {
    background: rgba(220, 53, 69, 0.05);
    border-left: 4px solid #dc3545;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-top: 2rem;
}

.critica-highlight-box h3 {
    color: #dc3545;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .critica-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .critica-image-container {
        order: 2; /* Imagen después del texto */
    }
    
    .critica-content {
        order: 1; /* Texto primero */
    }
}

/* ============================================
   PROFESSIONAL MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 768px) {
    /* Hero Optimization */
    .hero {
        height: 100vh;
        min-height: 600px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 2rem;
    }

    .hero-buttons .btn-primary, 
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    /* Situación Crítica & Defensa Estratégica */
    .critica-container, 
    .defensa-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .critica-content h2, 
    .defensa-content h2 {
        font-size: 1.8rem;
    }

    .critica-list li, 
    .defensa-list li {
        text-align: left;
        font-size: 0.95rem;
    }

    .critica-highlight-box {
        text-align: left;
    }

    /* Testimonios Slider */
    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
        padding: 1.5rem;
    }

    /* Footer Optimization */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-section ul {
        display: inline-block;
        text-align: left;
    }

    /* Floating WhatsApp Button */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* Location Grid Mobile Adjustment */
@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .location-photo {
        order: 2;
    }
    
    .location-info {
        order: 1;
    }
}
