/* Base Styles & Variables */
:root {
    /* Color Palette - Light Mode Premium (Whitespace & Cleanliness) */
    --bg-color: #ffffff;
    --surface-color: #f8fafc; /* Very light slate */
    --surface-light: #f1f5f9;
    
    --accent-gold: #002170; /* Azul Navy */
    --accent-gold-hover: #00154a;
    --accent-glow: rgba(0, 33, 112, 0.25);
    
    --accent-blue: #0b1120; /* Azul medianoche */
    
    --text-main: #0f172a; /* Dark slate for high contrast readability */
    --text-muted: #475569;
    
    --font-primary: 'Montserrat', sans-serif;
    
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent-blue);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Layout Classes */
.container {
    width: 90%;
    max-width: 1400px; /* Increased for better use of space on HD/2K */
    margin: 0 auto;
}

.section-padding {
    padding: 10rem 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-3px);
}

.btn-glow {
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-glow:hover {
    box-shadow: 0 8px 30px rgba(0, 33, 112, 0.4);
}

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

.btn-outline:hover {
    background: var(--accent-blue);
    color: #fff;
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--accent-blue);
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.5rem 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-blue);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.navbar.scrolled .menu-toggle span {
    background-color: var(--accent-blue);
}

/* Hero transparent header state */
.navbar:not(.scrolled) .menu-toggle span {
    background-color: #ffffff;
}

/* Active State Animation - Always show dark color when active on mobile menu */
.menu-toggle.active span {
    background-color: var(--accent-blue) !important;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

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

.logo-img {
    height: 40px;
    filter: brightness(0) invert(1); /* Blanco cuando transparente */
    transition: var(--transition-fast);
}

/* Colores para la barra transparente (fondo azul) */
.navbar .nav-links a {
    color: #ffffff;
}

.navbar .btn-outline {
    color: #ffffff;
    border-color: #ffffff;
}

.navbar .btn-outline:hover {
    background: #ffffff;
    color: var(--accent-blue);
}

.navbar .logo span span {
    color: #ffffff !important;
}

/* Colores cuando se hace scroll (fondo blanco) */
.navbar.scrolled .logo-img {
    filter: none;
}

.navbar.scrolled .logo span span:first-child {
    color: var(--accent-blue) !important;
}

.navbar.scrolled .logo span span:last-child {
    color: var(--accent-gold) !important;
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--accent-gold);
}

.navbar.scrolled .btn-outline {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.navbar.scrolled .btn-outline:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Hero Section - Blue Redesign */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0; /* Adding vertical padding to the hero for more space */
    position: relative;
    overflow: hidden;
    background-color: #274abb; /* Deep royal blue */
}

/* Concentric Circles */
.hero-circles {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    z-index: 0;
    pointer-events: none;
}

.hero-circles .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.circle-1 { width: 400px; height: 400px; }
.circle-2 { width: 600px; height: 600px; }
.circle-3 { width: 800px; height: 800px; }

/* Vertical Socials */
.hero-socials {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(-180deg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
    writing-mode: vertical-rl;
}

.hero-socials a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.hero-socials a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.social-line {
    width: 1px;
    height: 40px;
    background-color: var(--accent-gold);
    display: inline-block;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 85%;
    margin-left: 10%;
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(8rem, 10vw, 8.5rem);
    line-height: 0.9;
    color: #ffffff;
    margin-bottom: 2rem;
    text-transform: capitalize;
}

.title-line-1 { padding-left: 0; }
.title-line-2 { padding-left: 15%; }
.title-line-3 { padding-left: 30%; }

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    max-width: 450px;
    margin-bottom: 2.5rem;
    margin-left: 30%;
    font-size: 1.1rem;
}

.hero-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 30%;
}

.cta-line {
    width: 50px;
    height: 2px;
    background-color: var(--accent-gold);
}

.hero-cta-text {
    background-color: var(--accent-gold);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    box-shadow: 0 10px 20px rgba(0, 33, 112, 0.15);
}

.hero-cta-text:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 33, 112, 0.25);
    color: #ffffff;
}

.hero-cta-text i {
    font-size: 1.4rem;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
}

/* Carrusel Marcas */
.marcas-section {
    background-color: var(--surface-color);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 1rem;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.t-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
}

.t-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.t-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    margin-left: 4rem;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Social Proof */
.social-proof {
    padding: 6rem 0;
    background-color: #f8faff;
    position: relative;
}

.social-proof-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 4rem;
    color: var(--accent-blue);
    opacity: 0.7;
}

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

.logo-card {
    background: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 33, 112, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 33, 112, 0.03);
}

.logo-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 33, 112, 0.08);
    border-color: var(--accent-gold);
}

.logo-img-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.brand-logo {
    max-height: 100%;
    max-width: 140px;
    filter: grayscale(100%);
    transition: var(--transition-fast);
    opacity: 0.7;
}

.logo-card:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    opacity: 0.6;
    transition: var(--transition-fast);
}

.logo-card:hover .brand-icon {
    color: var(--accent-gold);
    opacity: 1;
    transform: scale(1.1);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.2rem;
}

.brand-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* About Section Interactive */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem; /* Increased gap */
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.about-img-main {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.about-img-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img-main:hover img {
    transform: scale(1.05);
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 4px solid var(--accent-gold);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

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

.badge-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.about-experience-badge h4 {
    font-size: 2rem;
    margin: 0;
    color: var(--accent-blue);
    display: inline-block;
}

.about-experience-badge span {
    font-size: 1.5rem;
    color: var(--accent-blue);
    font-weight: bold;
}

.about-experience-badge p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 33, 112, 0.05);
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-text .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.experience-desc.lead {
    font-size: 1.2rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.highlight-box {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent-gold);
    border-right: 4px solid var(--accent-gold);
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition-fast);
}

.highlight-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateX(10px);
}

.highlight-icon {
    background: rgba(0, 33, 112, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.highlight-box p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Services Grid - Anur Portfolio Style */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem; /* Increased gap */
    margin-top: 6rem; /* Increased margin top */
}

.wpo-protfolio-single {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 450px;
    background: var(--surface-color);
}

.wpo-protfolio-img {
    width: 100%;
    height: 100%;
}

.wpo-protfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Gradient overlay for readability */
.wpo-protfolio-single::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 33, 112, 0.9) 0%, transparent 100%);
    z-index: 1;
    transition: 0.4s ease;
}

.wpo-protfolio-single:hover::after {
    height: 100%;
    background: rgba(0, 33, 112, 0.85); /* Full overlay on hover */
}

.wpo-protfolio-single:hover .wpo-protfolio-img img {
    transform: scale(1.1);
}

.wpo-protfolio-text {
    position: absolute;
    left: 0;
    bottom: -150px; /* Hidden initially, title shows at bottom */
    width: 100%;
    padding: 2.5rem 2rem;
    z-index: 2;
    transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    color: #ffffff;
}

.wpo-protfolio-single:hover .wpo-protfolio-text {
    bottom: 0;
}

.wpo-protfolio-text h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    transition: 0.5s ease;
}

.wpo-protfolio-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease 0.1s;
}

.wpo-protfolio-single:hover .wpo-protfolio-text p {
    opacity: 1;
    transform: translateY(0);
}

.wpo-protfolio-text .btn-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease 0.2s;
}

.wpo-protfolio-single:hover .wpo-protfolio-text .btn-link {
    opacity: 1;
    transform: translateY(0);
}

.wpo-protfolio-text .btn-link:hover {
    background: #ffffff;
    color: var(--accent-gold);
    border-color: #ffffff;
}

.alliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    font-weight: 700;
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease 0.2s;
}

.wpo-protfolio-single:hover .wpo-protfolio-text .alliance-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Social Responsibility */
.sr-container {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.92) 0%, rgba(241, 245, 249, 0.92) 100%), url('Public/FUNDACION-Gatito-LOGO.gif');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.sr-content {
    flex: 1;
}

.sr-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sr-visual {
    width: 200px;
    height: 200px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sr-icon {
    font-size: 5rem;
    color: var(--accent-gold);
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    padding-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-info p {
    max-width: 300px;
}

.footer h4 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.social-icons a:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0; /* Adding a bit of padding back for better spacing with the link */
    border-top: 1px solid rgba(0,0,0,0.05);
    background-color: #091c50;
    color: #fff;
}

.privacy-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    margin-left: 5px;
}

.privacy-link:hover {
    color: var(--accent-gold);
}

/* Persistent WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-fast);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animations - Professional Reveal System */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-zoom.active {
    opacity: 1;
    transform: translate(0) scale(1);
    filter: blur(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Floating Animation for Background Elements */
@keyframes floating {
    0% { transform: translate(-50%, -50%) translateY(0px) rotate(0deg); }
    50% { transform: translate(-50%, -50%) translateY(-20px) rotate(2deg); }
    100% { transform: translate(-50%, -50%) translateY(0px) rotate(0deg); }
}

.hero-circles .circle {
    animation: floating 8s ease-in-out infinite;
}

.circle-1 { animation-duration: 8s; }
.circle-2 { animation-duration: 10s; animation-delay: 1s; }
.circle-3 { animation-duration: 12s; animation-delay: 2s; }

/* Text Gradient Pulse */
@keyframes gradient-text {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-glow {
    position: relative;
    z-index: 1;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--accent-gold), #4d7cff, var(--accent-gold));
    background-size: 200% 200%;
    z-index: -1;
    filter: blur(10px);
    border-radius: 50px;
    opacity: 0;
    transition: var(--transition-fast);
    animation: gradient-text 3s linear infinite;
}

.btn-glow:hover::after {
    opacity: 0.6;
}

/* Global Section Background Pattern */
.section-circles {
    position: absolute;
    width: 800px;
    height: 800px;
    z-index: -1;
    pointer-events: none;
    opacity: 1; /* Full opacity for the container */
}

.section-circles .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid rgba(0, 33, 112, 0.12); /* Increased opacity and thickness */
    animation: floating 10s ease-in-out infinite;
}

.circles-right {
    top: -200px;
    right: -200px;
}

.circles-left {
    bottom: -200px;
    left: -200px;
}

/* Responsive Design - Breakpoint Orchestration */

/* Ultra Wide - 2K & 4K Displays */
@media (min-width: 1800px) {
    .container {
        max-width: 1600px;
    }

    .hero-circles {
        width: 1200px;
        height: 1200px;
        right: 10%;
    }

    .circle-1 { width: 600px; height: 600px; }
    .circle-2 { width: 900px; height: 900px; }
    .circle-3 { width: 1200px; height: 1200px; }

    body {
        font-size: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .hero-container {
        width: 90%;
        margin-left: 5%;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 6rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }

    .hero-cta-wrapper {
        margin-left: 0;
        justify-content: center;
    }

    .cta-line {
        display: none;
    }

    .hero-image-wrapper {
        max-width: 400px;
        margin: 3rem auto 0;
    }

    .sr-container {
        flex-direction: column;
        text-align: center;
        padding: 4rem 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-experience-badge {
        right: 0;
        bottom: -20px;
    }

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

@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 80px);
        padding: 4rem 0 0;
    }

    .hide-mobile {
        display: none !important;
    }

    .marcas-section {
        height: 80px;
        padding: 0;
        display: flex;
        align-items: center;
        margin-bottom: 0;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1100;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a, .navbar .nav-links a {
        color: var(--accent-blue) !important;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .nav-cta {
        display: none;
    }

    .hero-image-wrapper, .hero-socials {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-info > div,
    .footer-contact p,
    .social-icons {
        justify-content: center !important;
    }

    .footer-info p {
        margin: 0 auto 1.5rem;
    }

    .hero-title {
        font-size: clamp(5rem, 15vw, 15rem) !important; 
        line-height: 1.1;
        text-align: center;
        align-items: center;
    }

    .hero-title .title-line {
        padding-left: 0 !important;
    }

    .services-grid {
        margin-top: 4rem;
        gap: 2rem;
    }

    .logos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sr-visual {
        width: 140px;
        height: 140px;
        margin-top: 2rem;
    }

    .about-image-wrapper {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

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

    .about-experience-badge {
        padding: 1rem;
        gap: 1rem;
    }
}
