/* ========================================
   AMG ABOGADOS - ANA MARÍA GALLARDO
   Landing Page - Estilos CSS Profesionales
   Con Modo Oscuro/Claro
======================================== */

/* ===== CSS Variables - Modo Claro (Default) ===== */
:root {
    /* Brand Colors */
    --color-primary: #1a365d;
    --color-primary-dark: #0f2440;
    --color-primary-light: #2c5282;
    --color-secondary: #c9a227;
    --color-secondary-light: #d4b445;
    --color-accent: #8b7355;
    
    /* Surface & Background */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-surface-elevated: #ffffff;
    
    /* Text */
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-heading: var(--color-primary);
    
    /* Borders */
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    
    /* Neutrals */
    --color-white: #ffffff;
    --color-light: #f7f7f7;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-dark: #111827;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(201, 162, 39, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-theme: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Footer */
    --footer-bg: var(--color-dark);
    --footer-text: var(--color-gray-400);
}

/* ===== CSS Variables - Modo Oscuro ===== */
[data-theme="dark"] {
    --color-primary: #3b82f6;
    --color-primary-dark: #1e40af;
    --color-primary-light: #60a5fa;
    --color-secondary: #d4b445;
    --color-secondary-light: #e0c65c;
    
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-surface: #1e293b;
    --color-surface-hover: #334155;
    --color-surface-elevated: #263548;
    
    --color-text: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-heading: #f1f5f9;
    
    --color-border: #334155;
    --color-border-light: #1e293b;
    
    --color-gray-100: #1e293b;
    --color-gray-200: #334155;
    --color-gray-300: #475569;
    --color-gray-400: #64748b;
    --color-gray-500: #94a3b8;
    --color-gray-600: #cbd5e1;
    --color-gray-700: #e2e8f0;
    --color-gray-800: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(201, 162, 39, 0.1);

    --footer-bg: #0a0f1a;
    --footer-text: #64748b;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    letter-spacing: -0.3px;
    transition: background-color var(--transition-theme), color var(--transition-theme);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-heading);
    letter-spacing: -0.3px;
    transition: color var(--transition-theme);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section__subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    padding: 0.375rem 1rem;
    background: rgba(201, 162, 39, 0.1);
    border-radius: var(--radius-full);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

.section__title span {
    color: var(--color-secondary);
}

.section__description {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    letter-spacing: -0.3px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

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

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

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

.btn--secondary:hover {
    background: var(--color-secondary-light);
    border-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--light:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn--outline-light:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn--full {
    width: 100%;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    opacity: 0.8;
}

.header.scrolled .theme-toggle {
    background: transparent;
    border: none;
    color: var(--color-text);
}

.header.scrolled .theme-toggle:hover {
    opacity: 0.7;
}

[data-theme="dark"] .theme-toggle {
    background: transparent;
    border-color: transparent;
    color: var(--color-secondary);
}

[data-theme="dark"] .header.scrolled .theme-toggle {
    background: transparent;
    border-color: transparent;
    color: var(--color-secondary);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--color-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav__link {
    color: var(--color-text);
}

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
    color: var(--color-primary);
}

.header.scrolled .nav__logo-amg {
    color: var(--color-primary);
}

[data-theme="dark"] .header.scrolled .nav__logo-amg {
    color: var(--color-primary-light);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.nav__logo-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-right: -5px;
}

.nav__logo-text {
    display: flex;
}

.nav__logo-amg {
    color: var(--color-white);
    transition: var(--transition);
}

.nav__logo-abogados {
    color: var(--color-secondary);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    position: relative;
    letter-spacing: -0.3px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--color-secondary);
    color: var(--color-white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
}

.nav__link--cta:hover {
    background: var(--color-secondary-light);
}

.nav__link--cta::after {
    display: none;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f2440 0%, #1a365d 40%, #2c5282 100%);
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #020617 0%, #0f172a 40%, #1e293b 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Decorative gradient orbs */
.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: var(--header-height);
}

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

.hero__data {
    max-width: 700px;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image img {
    width: 350px;
    height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero__subtitle {
    display: inline-flex;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    margin-bottom: 1.5rem;
}

.hero__subtitle-amg {
    color: var(--color-white);
}

.hero__subtitle-abogados {
    color: var(--color-secondary);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.hero__title span {
    color: var(--color-secondary);
    position: relative;
}

.hero__description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero__stats {
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.hero__stat-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== About Section ===== */
.about {
    background: var(--color-bg);
    transition: background-color var(--transition-theme);
}

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

.about__image-wrapper {
    position: relative;
}

.about__image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 550px;
    width: 100%;
}

.about__image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about__image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 550px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__image-placeholder i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
}

.about__image img {
    width: 100%;
    min-height: 500px;
    max-height: 600px;
    object-fit: cover;
}

.about__experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #a88620 100%);
    color: var(--color-white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about__experience-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.about__experience-text {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about__description {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-theme);
}

.about__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.about__info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about__info-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: 0.25rem;
}

.about__info-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about__info-item p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

/* ===== Services Section ===== */
.services {
    background: var(--color-bg-alt);
    transition: background-color var(--transition-theme);
    position: relative;
}

/* Decorative top border for services */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: var(--radius-full);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service__card {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition), background-color var(--transition-theme);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(201, 162, 39, 0.2);
}

.service__card:hover::before {
    transform: scaleX(1);
}

.service__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service__card:hover .service__icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.service__icon i {
    font-size: 1.75rem;
    color: var(--color-white);
}

.service__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.service__description {
    font-family: var(--font-heading);
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.service__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service__list li {
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: -0.3px;
}

.service__list i {
    color: var(--color-secondary);
    font-size: 0.75rem;
}

/* ===== Experience Section ===== */
.experience__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.experience__description {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.experience__features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience__feature {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    transition: var(--transition), background-color var(--transition-theme);
    border: 1px solid transparent;
}

.experience__feature:hover {
    background: var(--color-surface);
    box-shadow: var(--shadow);
    border-color: var(--color-border);
}

.experience__feature-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.experience__feature-icon i {
    color: var(--color-secondary);
    font-size: 1.25rem;
}

.experience__feature-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.experience__feature-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.experience__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.experience__stat-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--color-white);
    transition: var(--transition);
}

.experience__stat-card:hover {
    transform: translateY(-5px);
}

.experience__stat-card i {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.experience__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.experience__stat-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background: var(--color-bg);
    overflow: hidden;
    transition: background-color var(--transition-theme);
}

.testimonials .container {
    max-width: 100%;
    padding: 0;
}

.testimonials .section__header {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.testimonials__slider {
    overflow: visible;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

@media (max-width: 768px) {
    .testimonials__slider {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .testimonials__slider::-webkit-scrollbar {
        display: none;
    }
    
    .testimonials__slider {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .testimonial__card {
        scroll-snap-align: start;
    }
}

.testimonials__track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: slideTestimonials 40s linear infinite;
}

.testimonials__track:hover {
    animation-play-state: paused;
}

@keyframes slideTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

.testimonial__card {
    background: var(--color-surface);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition), background-color var(--transition-theme);
    width: 370px;
    min-width: 370px;
    flex-shrink: 0;
    border: 1px solid var(--color-border-light);
}

.testimonial__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 162, 39, 0.2);
}

.testimonial__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.testimonial__avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial__avatar i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial__name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
}

.testimonial__case {
    font-size: 0.8125rem;
    color: var(--color-secondary);
    margin-top: -2px;
    font-weight: 500;
}

.testimonial__rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.testimonial__rating i {
    color: var(--color-secondary);
    font-size: 0.875rem;
}

.testimonial__text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-style: italic;
    line-height: 1.7;
}

.testimonial__quote {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.testimonial__quote i {
    font-size: 1.5rem;
    color: var(--color-border);
}

/* ===== CTA Section ===== */
.cta {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f2440 0%, #1a365d 40%, #2c5282 100%);
    overflow: hidden;
}

[data-theme="dark"] .cta {
    background: linear-gradient(135deg, #020617 0%, #0f172a 40%, #1e293b 100%);
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

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

/* ===== Contact Section ===== */
.contact {
    background: var(--color-bg-alt);
    transition: background-color var(--transition-theme);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    transition: var(--transition), background-color var(--transition-theme);
    border: 1px solid var(--color-border-light);
}

.contact__info-card:hover {
    background: var(--color-surface-elevated);
    box-shadow: var(--shadow);
    border-color: rgba(201, 162, 39, 0.2);
}

.contact__info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__info-icon i {
    color: var(--color-secondary);
    font-size: 1.25rem;
}

.contact__info-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact__info-content p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact__social h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact__social-links {
    display: flex;
    gap: 0.75rem;
}

.contact__social-link {
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact__social-link i {
    color: var(--color-white);
    font-size: 1.125rem;
}

.contact__social-link:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

/* Contact CTA Buttons */
.contact__cta {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    transition: background-color var(--transition-theme), border-color var(--transition-theme);
}

.contact__cta-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact__cta-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.contact__cta-header p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.contact__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__cta-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
}

.contact__cta-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact__cta-btn-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__cta-btn-icon i {
    font-size: 1.5rem;
    color: var(--color-white);
}

.contact__cta-btn-content {
    flex: 1;
}

.contact__cta-btn-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.contact__cta-btn-text {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.8;
    word-break: break-word;
}

.contact__cta-btn > .fa-arrow-right {
    font-size: 0.875rem;
    opacity: 0.5;
    transition: var(--transition);
}

.contact__cta-btn:hover > .fa-arrow-right {
    opacity: 1;
    transform: translateX(3px);
}

/* WhatsApp Button */
.contact__cta-btn--whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--color-white);
}

.contact__cta-btn--whatsapp .contact__cta-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Email Button */
.contact__cta-btn--email {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.contact__cta-btn--email .contact__cta-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Email Alt Button */
.contact__cta-btn--email-alt {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: var(--color-white);
}

[data-theme="dark"] .contact__cta-btn--email-alt {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.contact__cta-btn--email-alt .contact__cta-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Phone Button */
.contact__cta-btn--phone {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #a88620 100%);
    color: var(--color-white);
}

.contact__cta-btn--phone .contact__cta-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Instagram Button */
.contact__cta-btn--instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: var(--color-white);
}

.contact__cta-btn--instagram .contact__cta-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.contact__cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
}

.contact__cta-note i {
    color: var(--color-secondary);
}

/* ===== Footer ===== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 5rem;
    transition: background-color var(--transition-theme), color var(--transition-theme);
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__logo-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-right: -5px;
}

.footer__logo-text {
    display: flex;
}

.footer__logo-amg {
    color: var(--color-white);
}

.footer__logo-abogados {
    color: var(--color-secondary);
}

.footer__description {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer__links h4,
.footer__contact h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer__contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.footer__contact p a {
    transition: var(--transition);
}

.footer__contact p a:hover {
    color: var(--color-secondary);
}

.footer__contact i {
    color: var(--color-secondary);
    flex-shrink: 0;
}

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

.footer__bottom p {
    font-size: 0.875rem;
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal a {
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer__legal a:hover {
    color: var(--color-secondary);
}

/* ===== Floating Elements ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float i {
    color: var(--color-white);
    font-size: 2rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Pulse animation for WhatsApp */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsappPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    color: var(--color-white);
    font-size: 1.25rem;
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

/* ===== Scroll Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .experience__stats {
        order: -1;
    }
    
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about__image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .about__image::before {
        top: -10px;
        left: -10px;
    }
    
    .about__experience-badge {
        bottom: -20px;
        right: -10px;
        padding: 1rem;
    }
    
    .about__experience-number {
        font-size: 2rem;
    }
    
    .about__experience-text {
        font-size: 0.7rem;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    /* Mobile Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-bg);
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 1001;
    }
    
    .nav__menu.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav__item {
        width: 100%;
    }
    
    .nav__link {
        display: block;
        padding: 1rem 0;
        color: var(--color-text);
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav__link--cta {
        margin-top: 1rem;
        text-align: center;
        color: var(--color-white) !important;
    }
    
    .nav__toggle {
        display: block;
        color: var(--color-white);
    }
    
    .header.scrolled .nav__toggle {
        color: var(--color-text);
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        color: var(--color-text);
    }
    
    /* Hero Mobile */
    .hero__wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero__image {
        display: none;
    }
    
    .hero__stats {
        display: none;
    }
    
    .hero__scroll {
        display: none;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .hero__subtitle {
        font-size: 1.25rem;
    }
    
    /* Services Mobile */
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials Mobile */
    .testimonial__card {
        width: 290px;
        min-width: 290px;
    }
    
    /* Experience Stats Mobile */
    .experience__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact CTA Mobile */
    .contact__cta {
        padding: 1.5rem;
    }
    
    .contact__cta-header h3 {
        font-size: 1.5rem;
    }
    
    .contact__cta-btn {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .contact__cta-btn-icon {
        width: 42px;
        height: 42px;
    }
    
    .contact__cta-btn-icon i {
        font-size: 1.25rem;
    }
    
    .contact__cta-btn-title {
        font-size: 0.9375rem;
    }
    
    .contact__cta-btn-text {
        font-size: 0.75rem;
    }
    
    .contact__cta-btn > .fa-arrow-right {
        display: none;
    }
    
    .contact__cta-note {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.75rem;
    }
    
    /* Footer Mobile */
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__logo {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer__legal {
        justify-content: center;
    }
    
    /* Theme toggle mobile */
    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    /* Floating buttons */
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }
    
    .back-to-top {
        bottom: 5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
    
    .cta__buttons {
        flex-direction: column;
    }
    
    .cta__buttons .btn {
        width: 100%;
    }
    
    /* About section mobile fix */
    .about__image-wrapper {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
    
    .about__image-placeholder i {
        font-size: 4rem;
    }
    
    .about__image::before {
        display: none;
    }
    
    .about__experience-badge {
        display: none;
    }
    
    .experience__stats {
        grid-template-columns: 1fr;
    }
    
    .contact__social-links {
        justify-content: center;
    }
}
