/* ========================================
   MG Consulting - Premium Website Styles
   ======================================== */

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

:root {
    --primary: #0A5C8A;
    --primary-dark: #074060;
    --primary-light: #1A8FCC;
    --primary-glow: rgba(26, 143, 204, 0.3);
    --accent: #D6336C;
    --accent-light: #E8528A;
    --gold: #C9A84C;
    --dark: #1A1A2E;
    --gray-dark: #3A3A4E;
    --gray: #6B6B80;
    --gray-light: #B0B0C0;
    --gray-lighter: #E8E8F0;
    --bg: #F5F7FA;
    --bg-alt: #FFFFFF;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(10, 92, 138, 0.08);
    --shadow-lg: 0 10px 40px rgba(10, 92, 138, 0.15);
    --shadow-glow: 0 0 30px rgba(26, 143, 204, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
}

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

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; font-weight: 600; }

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

a:hover { color: var(--primary-dark); }

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

ul { list-style: none; }

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

.section { padding: 6rem 0; }

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

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

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

/* === Text Gradient === */
.text-gradient {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Shine effect on buttons */
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% { left: -75%; }
    50% { left: 125%; }
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-3px);
}

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

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === Top Bar === */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1001;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-left i {
    color: var(--primary-light);
}

.top-bar-right {
    display: flex;
    gap: 1rem;
}

.top-bar-right a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.top-bar-right a:hover {
    color: var(--primary-light);
    transform: scale(1.2);
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 30px rgba(10, 92, 138, 0.15);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.03);
}

.logo img {
    height: 75px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(10, 92, 138, 0.2));
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 60px;
}

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

.logo-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-slogan {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.65rem;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-list {
    display: flex;
    gap: 0.1rem;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-dark);
    padding: 0.5rem 0.85rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* CTA Header Button */
.btn-cta-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: ctaPulse 2s ease-in-out infinite;
}

.btn-cta-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg);
    animation: btnShine 2.5s ease-in-out infinite;
}

.btn-cta-header:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(214, 51, 108, 0.4);
    color: var(--white);
    animation: none;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214, 51, 108, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(214, 51, 108, 0); }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #051e2e 0%, var(--primary-dark) 30%, var(--primary) 60%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    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.04'%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");
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

/* Hero entrance animations */
.animate-hero {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 0.8s ease forwards;
}

.animate-hero:nth-child(1) { animation-delay: 0.2s; }
.animate-hero:nth-child(2) { animation-delay: 0.4s; }
.animate-hero:nth-child(3) { animation-delay: 0.6s; }
.animate-hero:nth-child(4) { animation-delay: 0.8s; }
.animate-hero:nth-child(5) { animation-delay: 1s; }

@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.animate-hero-img {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    animation: heroImgIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

@keyframes heroImgIn {
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: var(--white);
    font-size: 3.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Trust badges */
.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.05);
}

.trust-badge i {
    color: var(--gold);
    font-size: 0.9rem;
}

/* Hero image with rings */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-ring {
    position: absolute;
    width: 460px;
    height: 460px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.hero-image-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold);
}

.hero-image-ring.ring-2 {
    width: 500px;
    height: 500px;
    border-color: rgba(255,255,255,0.05);
    animation-direction: reverse;
    animation-duration: 30s;
}

.hero-image-ring.ring-2::before {
    background: var(--primary-light);
    box-shadow: 0 0 15px var(--primary-light);
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

.hero-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

/* Fallback for missing images */
img[src*="manuel-foto"] {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    min-height: 100px;
}

/* === About Section === */
.section-about { background: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image { position: relative; }

.about-image img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.about-image-accent {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--primary);
    z-index: 1;
    transition: var(--transition);
}

.about-image:hover .about-image-accent {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1rem; }

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-lighter);
    border-bottom: 1px solid var(--gray-lighter);
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-weight: 500;
}

.quote {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    color: var(--primary);
    margin-top: 1.5rem;
}

/* === Services Section === */
.section-services { background: var(--bg); }

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.service-column {
    background: var(--white);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-column:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-top-color: var(--primary);
}

.service-column-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-lighter);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    transition: var(--transition);
}

.service-column:hover .service-icon {
    transform: rotateY(180deg);
}

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

.service-column-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

.service-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
    transition: var(--transition);
}

.service-list li:hover {
    transform: translateX(5px);
}

.service-list li i {
    color: var(--primary-light);
    margin-top: 0.35rem;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.service-list li span {
    font-size: 1rem;
    line-height: 1.6;
}

/* === Methodology Section === */
.section-methodology { background: var(--white); }

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

.methodology-card {
    padding: 2.5rem;
    border: 1px solid var(--gray-lighter);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.methodology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--gold));
    transition: left 0.5s ease;
}

.methodology-card:hover::before {
    left: 0;
}

.methodology-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.method-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.methodology-card:hover .method-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-glow);
}

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

.methodology-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.methodology-card p {
    font-size: 1rem;
    line-height: 1.7;
}

.methodology-card ul {
    text-align: left;
    margin-top: 0.5rem;
}

.methodology-card ul li {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.methodology-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* === Clients Section === */
.section-clients { background: var(--bg); }

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

.client-item {
    background: var(--white);
    padding: 1.5rem 1rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    border: 1px solid var(--gray-lighter);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.client-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.client-item:hover::after {
    transform: scaleX(1);
}

.client-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

/* === CTA Section === */
.section-cta {
    background: linear-gradient(135deg, #051e2e 0%, var(--primary-dark) 50%, var(--primary) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: ringRotate 30s linear infinite;
}

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

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* === Contact Section === */
.section-contact { background: var(--bg); }

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

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

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

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

.contact-item h4 {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p {
    color: var(--gray);
    font-size: 1rem;
}

.contact-item a:hover { color: var(--primary); }

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social a {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-social a:hover {
    transform: translateY(-4px) rotate(5deg);
    box-shadow: var(--shadow-glow);
    color: var(--white);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.form-group { margin-bottom: 1.25rem; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    border: 2px solid var(--gray-lighter);
    background: var(--bg);
    color: var(--gray-dark);
    transition: var(--transition);
    outline: none;
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 92, 138, 0.1);
    background: var(--white);
}

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

/* === Footer === */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo-big {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
    transition: var(--transition);
}

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

.footer-brand-name {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-style: italic;
    font-size: 0.9rem;
}

.footer-contact h4,
.footer-social-col h4,
.footer-nav-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--primary-light);
    width: 16px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 8px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-dev {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.footer-dev a {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.footer-dev a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.devopslab-logo {
    height: 22px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.7;
    transition: var(--transition);
}

.devopslab-logo:hover {
    opacity: 1;
}

/* === WhatsApp Float === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.85rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappBounce 2s ease-in-out infinite;
}

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

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: white;
    animation: none;
}

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

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.35s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(9) { transition-delay: 0.45s; }
.stagger-children .reveal:nth-child(10) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(11) { transition-delay: 0.55s; }
.stagger-children .reveal:nth-child(12) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(13) { transition-delay: 0.65s; }
.stagger-children .reveal:nth-child(14) { transition-delay: 0.7s; }
.stagger-children .reveal:nth-child(15) { transition-delay: 0.75s; }

/* === Page Hero (for sub-pages) === */
.page-hero {
    background: linear-gradient(135deg, #051e2e 0%, var(--primary-dark) 50%, var(--primary) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.page-hero .section-label { color: var(--gold); }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; }

/* === Contact Cards === */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-lighter);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
}

.contact-card h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

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

.contact-card a:hover { color: var(--primary); }

/* === CTA Buttons row === */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Link Button === */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.btn-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

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

/* === Footer Nav Col === */
.footer-nav-col ul {
    margin-bottom: 1.5rem;
}

.footer-nav-col ul li {
    margin-bottom: 0.5rem;
}

.footer-nav-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-nav-col ul li a:hover {
    color: var(--primary-light);
}

/* === Modal CONVERSEMOS === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-conversemos {
    background: var(--white);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal-conversemos {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-lighter);
    color: var(--dark);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    color: var(--white);
}

.modal-logo {
    height: 120px;
    width: auto;
    margin: 0 auto 1rem;
    filter: brightness(0) invert(1);
    animation: modalLogoPulse 2s ease-in-out infinite;
}

@keyframes modalLogoPulse {
    0%, 100% { transform: scale(1); filter: brightness(0) invert(1) drop-shadow(0 0 0 rgba(255,255,255,0)); }
    50% { transform: scale(1.05); filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255,255,255,0.3)); }
}

.modal-header h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.modal-form {
    padding: 2rem;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-dark);
    margin-bottom: 0.4rem;
}

.modal-form label i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    border: 2px solid var(--gray-lighter);
    background: var(--bg);
    color: var(--gray-dark);
    transition: var(--transition);
    outline: none;
    border-radius: 6px;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 92, 138, 0.1);
    background: var(--white);
}

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

.btn-submit {
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-color: #25D366;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    border-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* === Responsive === */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-content { gap: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-image img { width: 320px; height: 320px; }
    .hero-image-ring { width: 360px; height: 360px; }
    .hero-image-ring.ring-2 { width: 400px; height: 400px; }

    .about-grid { grid-template-columns: 300px 1fr; gap: 3rem; }
    .methodology-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-logo-big { height: 80px; }

    .btn-cta-header { display: none; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section { padding: 4rem 0; }

    .top-bar { display: none; }

    .hamburger { display: flex; }

    .nav {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav.active { transform: translateY(0); }

    .nav-list { flex-direction: column; gap: 0; }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        padding-left: 1rem;
    }

    .nav-link::after {
        bottom: 0;
        left: 0;
        height: 100%;
        width: 3px;
        transform: scaleY(0);
        transform-origin: bottom;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleY(1);
        width: 3px;
    }

    .btn-cta-header { display: none; }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .hero h1 { font-size: 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-image { order: -1; }
    .hero-image img { width: 250px; height: 250px; }
    .hero-image-ring { width: 290px; height: 290px; }
    .hero-image-ring.ring-2 { width: 320px; height: 320px; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { max-width: 300px; margin: 0 auto; }
    .about-stats { flex-direction: column; gap: 1.5rem; }

    .services-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: 1fr; }

    .modal-conversemos { max-width: 100%; margin: 0.5rem; }
    .modal-form .form-row { grid-template-columns: 1fr; }
    .modal-header { padding: 1.5rem 1.5rem 1rem; }
    .modal-form { padding: 1.5rem; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo-big { height: 80px; margin-left: auto; margin-right: auto; }
    .footer-contact p { justify-content: center; }
    .footer-social { justify-content: center; }
    .cta-content h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero { min-height: auto; padding-top: 1rem; padding-bottom: 2rem; }
    .hero-image img { width: 200px; height: 200px; }
    .hero-image-ring { width: 240px; height: 240px; }
    .hero-image-ring.ring-2 { width: 270px; height: 270px; }

    .btn { padding: 0.75rem 1.5rem; font-size: 0.8rem; }

    .clients-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .client-item { font-size: 0.7rem; padding: 1rem 0.5rem; min-height: 70px; }

    .contact-cards { grid-template-columns: 1fr; }

    .modal-overlay { padding: 0.5rem; }
    .modal-header h2 { font-size: 1.4rem; }
    .modal-form { padding: 1rem; }
    .modal-form .form-row { grid-template-columns: 1fr; }

    .logo img { height: 55px; }
    .logo-text { display: none; }
}
