﻿/* ============================================
   INGEMET PROYECTOS - MODERN DESIGN SYSTEM
   ============================================ */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* === CSS CUSTOM PROPERTIES (Design Tokens) === */
:root {
    /* Color Palette - Modern Tech Blues */
    --color-primary: #0066FF;
    --color-primary-dark: #0052CC;
    --color-primary-light: #3385FF;
    --color-secondary: #00D4FF;
    --color-accent: #00FFA3;
    --color-dark: #0A0E27;
    --color-dark-alt: #1A1F3A;
    --color-gray: #8B92B0;
    --color-gray-light: #E5E7EB;
    --color-white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 102, 255, 0.65) 0%, rgba(0, 212, 255, 0.60) 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-animated: linear-gradient(270deg, #0066FF, #00D4FF, #00FFA3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.3);
    --shadow-glow-hover: 0 0 30px rgba(0, 102, 255, 0.5);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-white);
    background: var(--color-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-animated);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.05;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-gray-light);
}

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

a:hover {
    color: var(--color-accent);
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-20) 0;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-12);
    position: relative;
}

.section-title h2 {
    font-size: var(--text-4xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
}

.section-title p {
    font-size: var(--text-lg);
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

/* === SCROLL PROGRESS === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: var(--z-tooltip);
    transition: width var(--transition-fast);
}

/* === FADE IN ANIMATION === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-4) 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) 0;
}

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

.navbar-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

.navbar.scrolled .navbar-logo {
    height: 58px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--space-6);
    align-items: center;
}

.navbar-menu a {
    color: var(--color-white);
    font-weight: 500;
    font-size: var(--text-base);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.navbar-menu a:hover::after {
    width: 80%;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-hover);
}

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

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

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--space-20);
    padding-bottom: calc(var(--space-24) + var(--space-20));
    margin-bottom: 0;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/santaAna.jpeg') center/cover no-repeat;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

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

.hero-title {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: 800;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
    color: var(--color-white);
    margin-bottom: var(--space-8);
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating Animation */
.hero-content {
    animation: fadeInUp 1s ease-out, float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === ABOUT US SECTION === */
.about-section {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(20, 28, 78, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-description {
    max-width: 900px;
    margin: 0 auto var(--space-12);
    text-align: center;
}

.about-description p {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-gray-light);
    font-weight: 300;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.mv-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.mv-card:hover::before {
    opacity: 1;
}

.mv-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.mv-card-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    margin: 0 auto var(--space-6);
    position: relative;
    z-index: 1;
}

.mission-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.vision-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.mv-card h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.mv-card p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-gray-light);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* === CARDS === */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-hover);
}

.card:hover::before {
    opacity: 0.1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-base);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--color-white);
}

.card-text {
    color: var(--color-gray-light);
    line-height: 1.7;
}

/* === GRID LAYOUTS === */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* === SERVICES SECTION === */
.services {
    background: var(--color-dark);
    margin-top: 0;
    padding-top: calc(var(--space-20) + var(--space-16));
    position: relative;
    z-index: 10;
    border-top: 3px solid rgba(0, 102, 255, 0.3);
}

.service-card {
    position: relative;
    height: 100%;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
}

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

.specialty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    display: block;
}

/* === PROJECTS SECTION === */
.projects {
    background: rgba(26, 31, 58, 0.3);
}

.project-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    transition: opacity var(--transition-base);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.project-card:hover .project-title {
    transform: translateY(0);
}

.project-description {
    transform: translateY(20px);
    transition: transform var(--transition-base);
    transition-delay: 0.1s;
}

.project-card:hover .project-description {
    transform: translateY(0);
}

/* === CLIENTS SECTION === */
.clients {
    background: rgba(26, 31, 58, 0.3);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
    align-items: center;
}

.client-logo {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.client-logo:hover img {
    filter: grayscale(0%) brightness(1) invert(0);
    opacity: 1;
}

/* === CONTACT SECTION === */
.contact {
    background: var(--color-dark-alt);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.contact-info h3 {
    margin-bottom: var(--space-6);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.contact-form {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--color-white);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

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

/* === PSE PAYMENT SECTION === */
.pagos-section {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.97) 0%, rgba(0, 40, 100, 0.95) 50%, rgba(10, 14, 39, 0.97) 100%);
    position: relative;
    overflow: hidden;
    border-top: 3px solid rgba(0, 212, 255, 0.3);
}

.pagos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 102, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.pagos-section .container {
    position: relative;
    z-index: 1;
}

.pagos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* -- Info Panel -- */
.pagos-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.pagos-security-badge {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.08) 0%, rgba(0, 212, 255, 0.08) 100%);
    border: 1px solid rgba(0, 255, 163, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
}

.security-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    flex-shrink: 0;
    border: 1px solid rgba(0, 255, 163, 0.3);
}

.pagos-security-badge h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--color-accent);
}

.pagos-security-badge p {
    font-size: var(--text-sm);
    color: var(--color-gray-light);
    margin-bottom: 0;
}

.pagos-methods h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.payment-method-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-2);
    transition: all var(--transition-base);
    text-align: center;
}

.payment-method-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.payment-method-icon {
    font-size: var(--text-2xl);
}

.payment-method-item span:last-child {
    font-size: var(--text-xs);
    color: var(--color-gray-light);
    font-weight: 500;
}

/* Steps */
.pagos-steps h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-white);
    box-shadow: 0 0 12px rgba(0, 102, 255, 0.3);
}

.step-item p {
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--color-gray-light);
    line-height: 1.5;
    padding-top: var(--space-2);
}

.pagos-powered {
    text-align: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-gray);
    font-size: var(--text-sm);
}

.pagos-powered strong {
    color: var(--color-secondary);
    font-size: var(--text-base);
}

/* -- Payment Form -- */
.pagos-form-wrapper {
    position: relative;
}

.pago-form {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

.pago-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.pago-form h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    color: var(--color-white);
    text-align: center;
}

.form-row {
    margin-bottom: 0;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.pago-form .form-group select {
    width: 100%;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    transition: all var(--transition-base);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.pago-form .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

.pago-form .form-group select option {
    background: var(--color-dark-alt);
    color: var(--color-white);
}

.monto-input {
    font-size: var(--text-xl) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.monto-hint {
    display: block;
    margin-top: var(--space-2);
    color: var(--color-gray);
    font-size: var(--text-xs);
}

.btn-pagar {
    width: 100%;
    padding: var(--space-5) var(--space-8) !important;
    font-size: var(--text-lg) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    background: linear-gradient(135deg, #00C853 0%, #00E676 50%, #00C853 100%) !important;
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.3) !important;
    animation: pulseGlow 3s ease-in-out infinite;
}

.btn-pagar:hover {
    box-shadow: 0 0 30px rgba(0, 200, 83, 0.5) !important;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 200, 83, 0.5);
    }
}

.btn-pagar-icon {
    font-size: var(--text-xl);
}

.pagos-disclaimer {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-gray);
    margin-top: var(--space-4);
    margin-bottom: 0;
}

/* Nav Pagos Link */
.nav-pagos-link {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15) 0%, rgba(0, 230, 118, 0.15) 100%) !important;
    border: 1px solid rgba(0, 200, 83, 0.3) !important;
    color: #00E676 !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-2) var(--space-4) !important;
    font-weight: 600 !important;
    transition: all var(--transition-base) !important;
}

.nav-pagos-link:hover {
    background: rgba(0, 200, 83, 0.25) !important;
    border-color: rgba(0, 230, 118, 0.5) !important;
    color: #69F0AE !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.nav-pagos-link::after {
    display: none !important;
}

/* Form Validation Errors */
.pago-input-error {
    border-color: #FF5252 !important;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.2) !important;
}

.pago-error {
    display: block;
    color: #FF5252;
    font-size: var(--text-xs);
    margin-top: var(--space-1);
    font-weight: 500;
}

/* Payment Notification */
.pago-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: var(--z-tooltip);
    animation: slideInRight 0.4s ease-out;
    max-width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-2xl);
}

.pago-notification-success {
    background: rgba(0, 200, 83, 0.15);
    border: 1px solid rgba(0, 200, 83, 0.4);
    color: #69F0AE;
}

.pago-notification-error {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #FF8A80;
}

.pago-notification-info {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #80DEEA;
}

.pago-notification-icon {
    font-size: var(--text-xl);
}

.pago-notification-text {
    font-size: var(--text-sm);
    font-weight: 500;
    flex: 1;
}

.pago-notification-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: var(--text-xl);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.pago-notification-close:hover {
    opacity: 1;
}

/* Responsive - Payment Section */
@media (max-width: 968px) {
    .pagos-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .pagos-info {
        order: 2;
    }

    .pagos-form-wrapper {
        order: 1;
    }
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }

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

    .pago-form {
        padding: var(--space-6);
    }

    .pago-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* === FOOTER === */
.footer {
    background: var(--color-dark);
    padding: var(--space-12) 0 var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h4 {
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.footer-section p,
.footer-section a {
    color: var(--color-gray);
    margin-bottom: var(--space-2);
    display: block;
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray);
    font-size: var(--text-sm);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.5rem;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: start;
        padding: var(--space-8);
        transition: left var(--transition-base);
    }

    .navbar-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .section {
        padding: var(--space-12) 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-bottom: var(--space-20);
    }

    .services {
        padding-top: var(--space-20);
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .btn {
        width: 100%;
    }
}

/* === FLOATING WHATSAPP BUTTON === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    color: white;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}


/* === JOBS/CAREERS SECTION === */
.jobs-section {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(20, 28, 78, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.jobs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.jobs-section .container {
    position: relative;
    z-index: 1;
}

.jobs-intro {
    max-width: 800px;
    margin: 0 auto var(--space-12);
    text-align: center;
}

.jobs-intro p {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-gray-light);
}

.job-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.job-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
}

.job-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-glow);
}

.job-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.job-badges {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.badge-location {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.badge-type {
    background: rgba(0, 255, 163, 0.15);
    border-color: rgba(0, 255, 163, 0.3);
}

.job-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-gray-light);
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.job-requirements {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
}

.job-requirements li {
    padding: var(--space-2) 0;
    padding-left: var(--space-6);
    position: relative;
    font-size: var(--text-sm);
    color: var(--color-gray-light);
    line-height: 1.6;
}

.job-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.job-apply-btn {
    width: 100%;
    margin-top: auto;
}

.jobs-cta {
    text-align: center;
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jobs-cta p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 768px) {
    .job-card {
        padding: var(--space-6);
    }

    .job-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .job-title {
        font-size: var(--text-xl);
    }
}

/* === JOB APPLICATION MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
}

.modal-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    font-size: var(--text-3xl);
    font-weight: 300;
    color: var(--color-gray-light);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-white);
    text-align: center;
}

.modal-subtitle {
    font-size: var(--text-lg);
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: var(--space-8);
    font-weight: 600;
}

#jobApplicationForm .form-group {
    margin-bottom: var(--space-6);
}

#jobApplicationForm .form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--color-white);
    font-size: var(--text-sm);
}

#jobApplicationForm input[type="file"] {
    padding: var(--space-3);
    cursor: pointer;
}

#jobApplicationForm input[type="file"]::-webkit-file-upload-button {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
}

#jobApplicationForm input[type="file"]::-webkit-file-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: var(--space-6);
        max-height: 95vh;
    }

    .modal-title {
        font-size: var(--text-2xl);
    }

    .modal-subtitle {
        font-size: var(--text-base);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 110px;
    /* Adjusted to be above WhatsApp button */
    right: 37px;
    /* Aligned center with WhatsApp button (60px width vs 45px width) */
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 0.8;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--secondary-color);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 90px;
        /* Adjusted for mobile */
        right: 27px;
        /* Aligned with mobile WhatsApp button */
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    line-height: 1;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

/* Responsive adjustments for language selector */
@media (max-width: 768px) {
    .language-selector {
        margin-top: 1rem;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-btn {
        font-size: 1.8rem;
        padding: 0.5rem 1rem;
    }
}

/* ============================================
   SECCIÓN DE PAGOS (PSE / ePayco)
   ============================================ */

.pagos-section {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(0, 20, 60, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.pagos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 50%, rgba(0, 102, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.pagos-section .container {
    position: relative;
    z-index: 1;
}

/* Layout de dos columnas */
.pagos-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-12);
    align-items: start;
}

/* Panel izquierdo */
.pagos-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* Badge de seguridad */
.pagos-security-badge {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: rgba(0, 255, 163, 0.08);
    border: 1px solid rgba(0, 255, 163, 0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-6);
}

.security-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.pagos-security-badge h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: #00FFA3;
    margin-bottom: var(--space-1);
}

.pagos-security-badge p {
    font-size: var(--text-sm);
    color: var(--color-gray);
    margin: 0;
}

/* Métodos de pago */
.pagos-methods h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.payment-method-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-gray-light);
    transition: all var(--transition-base);
}

.payment-method-item:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-2px);
}

.payment-method-icon {
    font-size: 1.5rem;
}

/* Pasos ¿Cómo funciona? */
.pagos-steps h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-5);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: var(--text-base);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.step-item p {
    font-size: var(--text-base);
    color: var(--color-gray-light);
    margin: 0;
    padding-top: 6px;
    line-height: 1.5;
}

/* "Procesado por ePayco" */
.pagos-powered {
    font-size: var(--text-sm);
    color: var(--color-gray);
    padding-top: var(--space-2);
}

.pagos-powered strong {
    color: var(--color-secondary);
}

/* Formulario glassmorphism */
.pagos-form-wrapper {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.pago-form h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    margin-bottom: var(--space-5);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.pago-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: 0;
}

.pago-form .form-group label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-light);
}

.pago-form input,
.pago-form select,
.pago-form textarea {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    color: var(--color-white);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    transition: all var(--transition-base);
    width: 100%;
    outline: none;
}

.pago-form input::placeholder,
.pago-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.pago-form input:focus,
.pago-form select:focus,
.pago-form textarea:focus {
    border-color: var(--color-primary);
    background: rgba(0, 102, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.pago-form input.invalid,
.pago-form select.invalid,
.pago-form textarea.invalid {
    border-color: #FF4D4D;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.15);
}

.pago-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B92B0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.pago-form select option {
    background: var(--color-dark-alt);
    color: var(--color-white);
}

.monto-input {
    font-size: var(--text-lg) !important;
    font-weight: 600 !important;
}

.monto-hint {
    font-size: var(--text-xs);
    color: var(--color-gray);
    margin-top: var(--space-1);
}

/* Botón Pagar */
.btn-pagar {
    width: 100%;
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-lg);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
    background: linear-gradient(135deg, #0066FF 0%, #00A3FF 50%, #00D4FF 100%);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.btn-pagar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.6);
}

.btn-pagar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-pagar-icon {
    font-size: 1.3rem;
}

.pagos-disclaimer {
    font-size: var(--text-xs);
    color: var(--color-gray);
    text-align: center;
    margin-top: var(--space-4);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Link de pagos en navbar */
.nav-pagos-link {
    color: var(--color-secondary) !important;
    font-weight: 600 !important;
}

/* Responsive */
@media (max-width: 900px) {
    .pagos-content {
        grid-template-columns: 1fr;
    }

    .pagos-form-wrapper {
        padding: var(--space-8);
    }
}

@media (max-width: 600px) {
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .pagos-form-wrapper {
        padding: var(--space-6);
    }
}

/* ============================================
   MODAL DE CONFIRMACIÓN DE PAGO (pcm)
   ============================================ */

/* Overlay oscuro */
.pcm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: pcmFadeIn 0.35s ease-out;
}

@keyframes pcmFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Tarjeta del modal */
.pcm-modal {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 520px;
    padding: 48px 40px 36px;
    position: relative;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 102, 255, 0.12);
    animation: pcmSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pcmSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Ícono de estado --- */
.pcm-status-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.pcm-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcm-icon-approved {
    background: radial-gradient(circle, rgba(0, 255, 128, 0.15) 0%, transparent 70%);
    border: 2px solid rgba(0, 255, 128, 0.4);
    box-shadow: 0 0 40px rgba(0, 255, 128, 0.25), 0 0 80px rgba(0, 255, 128, 0.1);
    animation: pcmPulseGreen 2.5s ease-in-out infinite;
}

@keyframes pcmPulseGreen {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(0, 255, 128, 0.25), 0 0 80px rgba(0, 255, 128, 0.08);
    }

    50% {
        box-shadow: 0 0 60px rgba(0, 255, 128, 0.4), 0 0 100px rgba(0, 255, 128, 0.18);
    }
}

.pcm-icon-pending {
    background: radial-gradient(circle, rgba(255, 170, 0, 0.15) 0%, transparent 70%);
    border: 2px solid rgba(255, 170, 0, 0.4);
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.25);
    animation: pcmPulseYellow 2.5s ease-in-out infinite;
}

@keyframes pcmPulseYellow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 170, 0, 0.25);
    }

    50% {
        box-shadow: 0 0 60px rgba(255, 170, 0, 0.45);
    }
}

.pcm-icon-rejected {
    background: radial-gradient(circle, rgba(255, 77, 77, 0.15) 0%, transparent 70%);
    border: 2px solid rgba(255, 77, 77, 0.4);
    box-shadow: 0 0 40px rgba(255, 77, 77, 0.25);
}

/* --- Título y subtítulo --- */
.pcm-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-white);
    text-align: center;
    margin-bottom: var(--space-2);
}

.pcm-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-base);
    text-align: center;
    margin-bottom: var(--space-8);
}

/* --- Tabla de detalles --- */
.pcm-details {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.pcm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: var(--space-4);
}

.pcm-row:last-child {
    border-bottom: none;
}

.pcm-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    flex-shrink: 0;
}

.pcm-value {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.pcm-amount {
    color: #00FF80;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* --- Badges de estado --- */
.pcm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.pcm-badge-approved {
    background: rgba(0, 255, 128, 0.12);
    color: #00FF80;
    border: 1px solid rgba(0, 255, 128, 0.3);
}

.pcm-badge-pending {
    background: rgba(255, 170, 0, 0.12);
    color: #FFAA00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.pcm-badge-rejected {
    background: rgba(255, 77, 77, 0.12);
    color: #FF4D4D;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

/* --- Botones del modal --- */
.pcm-actions {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.pcm-btn {
    flex: 1;
    padding: 13px 16px;
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.pcm-btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35);
}

.pcm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5);
}

.pcm-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pcm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
}

.pcm-btn-print {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 13px 18px;
}

.pcm-btn-print:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* --- Pie del modal --- */
.pcm-footer {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.22);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Responsive móvil --- */
@media (max-width: 600px) {

    /* Overlay: scroll en lugar de centrado fijo */
    .pcm-overlay {
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
    }

    /* Tarjeta: padding compacto, sin margen automático */
    .pcm-modal {
        padding: 28px 18px 22px;
        border-radius: 18px;
        margin: auto 0;
        max-width: 100%;
    }

    /* Ícono más pequeño */
    .pcm-icon {
        width: 76px;
        height: 76px;
    }

    .pcm-icon svg {
        width: 40px;
        height: 40px;
    }

    .pcm-icon span {
        font-size: 38px !important;
    }

    /* Texto más compacto */
    .pcm-title {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .pcm-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    /* Filas de la tabla más compactas */
    .pcm-row {
        padding: 9px 14px;
        flex-wrap: wrap;
        gap: 2px;
    }

    .pcm-label {
        font-size: 0.68rem;
        flex: 0 0 100%;
    }

    .pcm-value,
    .pcm-badge {
        font-size: 0.82rem;
        text-align: left;
    }

    .pcm-amount {
        font-size: 0.95rem;
    }

    /* Botones: columna en móvil */
    .pcm-actions {
        flex-direction: column;
        gap: 8px;
    }

    .pcm-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .pcm-btn-print {
        flex: 1 0 auto;
        padding: 12px 16px;
    }

    .pcm-footer {
        font-size: 0.68rem;
    }
}