﻿/* Import Inter for Headings and Body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Base Styles & Variables */
:root {
    --primary: #2563eb;
    /* Procure Blue */
    --primary-dark: #1e40af;
    /* Procure Blue Dark */
    --primary-light: #dbeafe;
    /* Procure Blue Light */
    --secondary: #0f172a;
    /* Dark Slate Gray / Navy */
    --secondary-dark: #020617;
    /* Slate 950 */
    --background: #ffffff;
    /* White background */
    --background-alt: #f8fafc;
    /* pure white for cards and alt sections */
    --text-main: #334155;
    /* Slate 700 main text */
    --text-light: #64748b;
    /* Slate 500 secondary text */
    --success: #10b981;
    --border: #e2e8f0;
    /* Slate 200 border */
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Large soft shadow like Premium BPO */
    --shadow-md: rgba(0, 0, 0, 0.08) 0px 48px 128px -24px;
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--background);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-success {
    color: var(--success);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 40px;
    /* Pill shape */
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateY(-2px);
}

.btn-white {
    background-color: white;
    color: var(--primary) !important;
}

.btn-white:hover {
    background-color: transparent;
    color: white !important;
    border: 1px solid white;
}

.btn-block {
    width: 100%;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
}

/* Navbar */
header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.top-bar {
    background-color: var(--secondary);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary);
}

.nav-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

header:not(.scrolled) .nav-links a,
header:not(.scrolled) .mobile-menu-btn {
    color: white;
}

header.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary) !important;
}

header:not(.scrolled) .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

header.scrolled .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

header:not(.scrolled) .btn-primary {
    background-color: white;
    color: var(--primary) !important;
}

header:not(.scrolled) .btn-primary:hover {
    background-color: var(--primary);
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid var(--border);
    padding: 1rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    background: url('https://images.unsplash.com/photo-1541888081622-df7a696fa19b?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    min-height: 90vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Procure blue overlay */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.75) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.floating-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 200px;
    animation: float 3s ease-in-out infinite;
}

.icon-box {
    background-color: #ecfdf5;
    color: var(--success);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.card-1 h4 {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.card-1 span {
    font-size: 0.875rem;
    color: var(--text-light);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--background-alt);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #eff6ff;
    color: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-light);
}

/* Why Us Section */
.why-us-section {
    padding: 6rem 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
}

.feature-list i {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-list h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.feature-list p {
    color: var(--text-light);
}

.why-us-image img {
    border-radius: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--background-alt);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item .icon-box {
    width: 3rem;
    height: 3rem;
    background-color: #eff6ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p {
    font-size: 1.125rem;
    color: var(--secondary);
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-logo {
    filter: brightness(0) invert(1);
    /* Make logo white */
    max-height: 40px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-buttons,
    .hero-features {
        justify-content: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        order: -1;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    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);
    }
}

/* Nuevas clases de utilidad para la reestructuraci�n */
.bg-alt {
    background-color: var(--background-alt);
}

.bg-dark {
    background-color: var(--secondary);
    color: white;
}

.text-white {
    color: white !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-danger {
    color: #ef4444;
}

.border-card {
    border: 1px solid var(--border);
    box-shadow: none;
    background: white;
}

.border-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.max-w-800 {
    max-width: 800px;
    margin: 0 auto;
}

.max-w-1000 {
    max-width: 1000px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-minimal {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card-minimal:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: transparent;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.check-list li i {
    color: var(--primary);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.check-list-sm li i {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.large-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.large-list li i {
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray {
    color: #6b7280;
}

.fw-bold {
    font-weight: 600;
}

.badge-top {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.case-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius);
}

.case-metric {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trust-block {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.hover-underline:hover {
    text-decoration: underline;
}

.section-padding {
    padding: 3rem 0 3rem;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .text-center-mobile {
        text-align: center;
    }

    .hidden-mobile {
        display: none !important;
    }

    .section-padding {
        padding: 2rem 0 2rem;
    }
}

@media (min-width: 992px) {
    .section-padding {
        padding: 4rem 0 4rem;
    }
}

/* Internal Page Header */
body.internal-page header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

body.internal-page header .nav-links a,
body.internal-page header .mobile-menu-btn {
    color: var(--text-main) !important;
}

body.internal-page header .nav-links a::after {
    background-color: var(--primary) !important;
}

body.internal-page header .btn-primary {
    background-color: var(--primary) !important;
    color: white !important;
}

/* White Outline Button (for dark backgrounds) */
.btn-outline.btn-white {
    border-color: white !important;
    color: white !important;
}

.btn-outline.btn-white:hover {
    background-color: white !important;
    color: var(--primary) !important;
}

/* White Solid Button (for dark backgrounds) */
.btn-white:not(.btn-outline) {
    background-color: white !important;
    color: var(--primary) !important;
    border: none;
}

.btn-white:not(.btn-outline):hover {
    background-color: var(--background) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
/* --- Mobile Responsiveness Fixes --- */
.page-header-padding {
    padding-top: 8rem;
}

.page-header-title {
    font-size: 3rem;
}

@media (max-width: 768px) {
    .page-header-padding {
        padding-top: 6rem !important;
    }
    
    .page-header-title {
        font-size: 2.25rem !important;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }

    .trust-block, .case-card {
        padding: 1.5rem;
    }
    
    .card-minimal {
        padding: 1.5rem;
    }
}
