/* --- VARIABLES Y RESET (Guía de Estilo PERITIA CERTA 2026) --- */
:root {
    --primary-blue: #1A2A4F;
    --primary-blue-light: #2a406f;
    --secondary-blue: #0f1a33;
    --accent-gold: #CBA135;
    --accent-gold-light: #d4b35a;
    --white: #FFFFFF;
    --light-gray: #f8fafc;
    --dark-gray: #1e293b;
    --text-light: #64748b;
    --text-dark: #334155;
    --gradient-primary: linear-gradient(135deg, #1A2A4F 0%, #2a406f 50%, #CBA135 100%);
    --gradient-gold: linear-gradient(135deg, #CBA135 0%, #f0c774 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(203, 161, 53, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-blue: #0d1b2a;
    --secondary-blue: #000810;
    --light-gray: #0f1b29;
    --white: #0a1628;
    --dark-gray: #e2e8f0;
    --text-light: #94a3b8;
    --text-dark: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--light-gray);
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 90px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light-gray);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Selection */
::selection {
    background: var(--accent-gold);
    color: white;
}

a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }

/* Estilos para listas con iconos de check */
ul li {
    line-height: 2;
}

.mission-list {
    display: grid;
    gap: 15px;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 2.2;
    padding: 8px 0;
}

.mission-list li i {
    margin-top: 5px;
    flex-shrink: 0;
}

/* Features list para servicios */
.features-list {
    display: grid;
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 2.3;
    padding: 6px 0;
}

.features-list li i {
    margin-top: 5px;
    flex-shrink: 0;
    color: var(--accent-gold);
}

/* Service detail sections */
.service-detail {
    padding: 80px 5%;
}

.service-detail .half {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
}

.service-detail .half > * {
    width: 100%;
}

.service-detail .half img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}
img { max-width: 100%; height: auto; display: block; }

/* Prevenir overflow horizontal */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Asegurar que elementos decorativos no causen overflow */
.page-header::before,
.hero::before,
.commitment::before,
.bg-animated::before,
.bg-animated {
    max-width: 100vw;
    overflow: hidden;
}

section {
    overflow-x: hidden;
    max-width: 100%;
}

.hero, .page-header, .commitment, .stats-section {
    overflow-x: hidden;
    max-width: 100%;
}

/* Animated Background */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-animated::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(203, 161, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(26, 42, 79, 0.08) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -10px) rotate(5deg); }
    66% { transform: translate(-10px, 10px) rotate(-5deg); }
}

/* Botones Modernos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-gold);
    color: var(--white);
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transition: 0.5s;
}

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

.btn:hover::before {
    left: 100%;
}

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

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

/* --- HEADER MODERNO --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99999;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid rgba(203, 161, 53, 0.3);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 10px 5%;
    background: white;
    box-shadow: var(--shadow-lg);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo i {
    color: var(--accent-gold);
    font-size: 1.5rem;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

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

/* Theme Toggle */
.theme-toggle {
    background: #2a406f;
    border: 1px solid #CBA135;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--accent-gold);
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2a406f;
    border: 1px solid #CBA135;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10001;
    position: relative;
}

.menu-toggle:hover {
    background: var(--accent-gold);
    transform: scale(1.05);
}

.menu-toggle:hover {
    background: var(--accent-gold);
}

/* --- PAGE HEADER --- */
.page-header {
    background: var(--primary-blue);
    background-size: cover;
    background-position: center;
    padding: 180px 5% 100px;
    text-align: center;
    color: white;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 79, 0.85);
    z-index: 0;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    opacity: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.page-header-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #2a406f;
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid #CBA135;
    font-size: 0.9rem;
    opacity: 1;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 25px 5%;
    background: var(--white);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}
.breadcrumbs a { color: var(--primary-blue); font-weight: 500; }
.breadcrumbs a:hover { color: var(--accent-gold); }
.breadcrumbs span { margin: 0 10px; color: var(--text-light); }

/* --- HERO MODERNO --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease, transform 8s ease;
    transform: scale(1);
}
.slide.active { opacity: 1; transform: scale(1.1); }

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 42, 79, 0.4);
}

/* Hero Container con logo grande */
.hero-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    color: white;
}

.hero-logo-large {
    flex-shrink: 0;
    width: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-large img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2a406f;
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #CBA135;
    font-size: 0.85rem;
    margin-bottom: 25px;
    opacity: 1;
}

.hero-badge i {
    color: var(--accent-gold);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
    opacity: 1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 1;
}

/* --- SECCIONES ANIMADAS --- */
section {
    position: relative;
}

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

/* --- ABOUT MODERNO --- */
.about {
    padding: 120px 5%;
    text-align: center;
    background: var(--white);
    position: relative;
}

.about-container {
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    padding: 70px 60px;
    background: var(--light-gray);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.about p {
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Counter */
.stats-section {
    padding: 80px 5%;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    color: var(--primary-blue);
    padding: 30px;
    background: var(--light-gray);
    border-radius: 15px;
    border: 2px solid #CBA135;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 90px;
    height: 90px;
    background: #CBA135;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: white;
    border: 3px solid #CBA135;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 8px 25px rgba(203, 161, 53, 0.5);
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: #CBA135;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.stat-item:hover .stat-icon::before {
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.stat-item:hover .stat-icon {
    transform: rotateY(360deg) scale(1.1);
    background: #CBA135;
    border-color: #CBA135;
    box-shadow: 0 15px 40px rgba(203, 161, 53, 0.7);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    font-size: 2.5rem;
    margin-left: 5px;
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-top: 15px;
}

.stat-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* --- SECCIÓN DIVIDIDA MODERNA --- */
.section-split {
    display: flex;
    flex-wrap: wrap;
    padding: 120px 5%;
    align-items: center;
    gap: 80px;
    background: var(--light-gray);
}

.section-split.white { background: var(--white); }

.half {
    flex: 1;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.half img {
    align-self: center;
    max-width: 100%;
    height: auto;
}

.half h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    position: relative;
}

.half h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    margin-top: 15px;
    border-radius: 2px;
}

.half p {
    margin-bottom: 25px;
    line-height: 1.9;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.half img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.half img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* --- SERVICIOS MODERNOS --- */
.services {
    padding: 120px 5%;
    text-align: center;
    background: var(--white);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 70px;
}

.section-tag {
    display: inline-block;
    background: rgba(203, 161, 53, 0.15);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.services h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.services-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.card-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 79, 0.5);
}

.card-body { padding: 35px; }

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: -55px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.card-link:hover {
    gap: 15px;
    color: var(--primary-blue);
}

/* --- COMMITMENT MODERNO --- */
.commitment {
    background: var(--primary-blue);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 80px;
    position: relative;
}

.commitment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 79, 0.85);
    z-index: 0;
}

.commitment > * {
    position: relative;
    z-index: 1;
}

.commitment-text {
    flex: 1;
    min-width: 350px;
    z-index: 2;
}

.commitment h3 {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.commitment h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.commitment p {
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.9;
    font-size: 1.1rem;
}

.commitment-list {
    display: grid;
    gap: 20px;
}

.commitment-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #2a406f;
    border-radius: 10px;
    border: 2px solid #CBA135;
    transition: var(--transition-smooth);
}

.commitment-list li:hover {
    background: #1A2A4F;
    transform: translateX(10px);
}

.commitment-list i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.commitment-img {
    flex: 1;
    min-width: 350px;
}

.commitment-img img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--glass-border);
}

/* --- CONTACTO MODERNO --- */
.contact {
    padding: 120px 5%;
    background: var(--light-gray);
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info { flex: 1; min-width: 350px; }

.contact-info h2 {
    color: var(--primary-blue);
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ACOMM */
.contact-info>div[class="contact-item"]{
    margin:20px 0;
}
.contact-info>div[class="contact-item"]:last-child{
    margin:0 0;
}
/* /ACOMM */

.contact-grid {
    display: grid;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-left: 4px solid var(--accent-gold);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--accent-gold);
    width: 50px;
    height: 50px;
    background: #CBA135;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item span {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    min-width: 350px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: var(--light-gray);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-gold);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(203, 161, 53, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* --- VALUES SECTION --- */
.values-section {
    padding: 120px 5%;
    background: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.value-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

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

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-card > * {
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.value-card:hover h3,
.value-card:hover p {
    color: white;
}

.value-card i {
    width: 90px;
    height: 90px;
    background: var(--gradient-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.value-card:hover i {
    transform: scale(1.1) rotate(10deg);
}

.value-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

/* --- TEAM SECTION --- */
.team-section {
    padding: 120px 5%;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    margin-top: 70px;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.team-info { padding: 40px; text-align: center; }

.team-info h3 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.team-info .role {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.team-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.team-social a:hover {
    background: var(--accent-gold);
    color: white;
}

/* Team Card Compact */
.team-card-compact {
    background: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    border: 1px solid rgba(203, 161, 53, 0.2);
}

.team-card-compact:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(26, 42, 79, 0.2);
    border-color: var(--accent-gold);
}

.team-photo-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card-compact:hover .team-photo-wrapper img {
    transform: scale(1.05);
}

.team-info-compact {
    padding: 35px;
    text-align: center;
}

.team-info-compact h3 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.team-info-compact .role {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
}

.team-info-compact p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.team-bio {
    margin-bottom: 25px;
}

/* Certification Badges Container */
.cert-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cert-badge-mini {
    display: inline-block;
    background: white;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(203, 161, 53, 0.15);
}

.cert-badge-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(203, 161, 53, 0.3);
    transition: left 0.6s ease;
}

.cert-badge-mini:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(203, 161, 53, 0.25);
    border-color: var(--accent-gold);
}

.cert-badge-mini:hover::before {
    left: 100%;
}

.cert-badge-mini img {
    height: 120px;
    width: 120px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.cert-badge-mini:hover img {
    transform: scale(1.1);
}

/* Team Social Container */
.team-social {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(203, 161, 53, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Team Contact Button */
.team-social .btn,
.team-social .btn-outline {
    padding: 14px 48px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

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

.team-social .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(203, 161, 53, 0.3);
    transition: left 0.5s ease;
    z-index: 0;
}

.team-social .btn-outline:hover {
    background: var(--accent-gold);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(203, 161, 53, 0.4);
}

.team-social .btn-outline:hover::before {
    left: 100%;
}

.team-social .btn-outline i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.team-social .btn-outline:hover i {
    transform: scale(1.2) rotate(-10deg);
}

/* --- FOOTER MODERNO --- */
footer {
    background: var(--secondary-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 5% 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gold);
}

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

.footer-col .logo {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.book-reclamaciones {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2a406f;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #CBA135;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: white;
}

.book-reclamaciones:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

.book-reclamaciones:hover {
    background: var(--accent-gold);
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a406f;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #CBA135;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--accent-gold);
    transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.partners span {
    color: white;
    font-weight: 600;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

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

.whatsapp-float::after {
    content: 'Contáctanos';
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.whatsapp-float:hover::after {
    opacity: 1;
    right: 80px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background: var(--accent-gold);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 9998;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border: none;
}

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

.back-to-top:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(203, 161, 53, 0.5);
}

.back-to-top::after {
    content: 'Subir';
    position: absolute;
    left: 60px;
    background: white;
    color: var(--accent-gold);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.back-to-top:hover::after {
    opacity: 1;
    visibility: visible;
    left: 65px;
}

/* --- ANIMACIONES --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animaciones de carga para el body - desactivada */
body {
    opacity: 1;
}

/* Efectos hover sutiles para todos los elementos interactivos */
a, button, .btn, .card, .value-card, .stat-item {
    transition: var(--transition-smooth);
}

/* Fade In escalonado para elementos - desactivado */
.fade-in-stagger > * {
    opacity: 1;
}

/* Efecto de underline animado para enlaces */
.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-gold);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Efecto ripple para botones */
.btn {
    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.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

/* Animación de entrada para secciones - desactivada */
.section-enter {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de parallax suave */
.parallax-section {
    transition: transform 0.3s ease-out;
}

/* Animación para imágenes */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

img:hover {
    filter: brightness(1.05);
}

/* Efecto de carga para formulario */
.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
}

/* Animación para iconos */
i {
    transition: transform 0.3s ease, color 0.3s ease;
}

a:hover i,
button:hover i {
    transform: scale(1.1);
}

/* Efecto de brillo en cards */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.card:hover::after {
    left: 150%;
}

/* Animación de bounce para elementos importantes - desactivada */
.bounce-in {
    opacity: 1;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Skeleton loading animation */
@keyframes skeletonLoading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--light-gray) 0%,
        #e0e0e0 50%,
        var(--light-gray) 100%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 4px;
}

/* Smooth reveal para elementos - desactivados */
.reveal-left {
    opacity: 1;
    transform: translateX(0);
}

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

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

/* Staggered children animation - desactivado */
.stagger-children > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effect con elevación suave */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Efecto de glow animado */
.glow-effect {
    transition: box-shadow 0.4s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(203, 161, 53, 0.4),
                0 0 40px rgba(203, 161, 53, 0.2);
}

/* Animación de typing para textos */
.typing {
    overflow: hidden;
    border-right: 3px solid var(--accent-gold);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-gold); }
}

/* Animación de carga para página */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Efecto de magnificación al hover */
.magnify {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnify:hover {
    transform: scale(1.05);
}

/* Efecto de rotación suave */
.rotate-hover {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-hover:hover {
    transform: rotate(5deg);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Ripple Effect Keyframes */
@keyframes ripple {
    to {
        transform: scale(20);
        opacity: 0;
    }
}

/* Animación de entrada para formularios - desactivado */
.form-group {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de carga inicial del contenido - desactivada */
.content-wrapper > *,
.section-split > .half {
    opacity: 1;
}

/* Efecto de aparición para el título del page header - desactivado */
.page-header h1 {
    opacity: 1;
    transform: translateY(0);
}

.page-header p {
    opacity: 1;
    transform: translateY(0);
}

.page-header-breadcrumb {
    opacity: 1;
    transform: translateY(0);
}

/* Animación suave para breadcrumbs */
.breadcrumbs a {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-gold);
    transform: translateX(3px);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3000;
    animation: slideIn 0.5s ease;
}

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

/* --- ESTILOS PARA CERTIFICACIONES --- */
.cert-logos {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cert-logos > div {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    cursor: pointer;
}

.cert-logos > div:hover {
    border-color: var(--accent-gold) !important;
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-8px);
}

.cert-logos > div:hover img {
    transform: scale(1.05);
}

/* Badge circular para certificaciones */
.cert-badge-circular {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cert-logos img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 2.8rem; }
    .page-header h1 { font-size: 2.5rem; }
    .section-split { padding: 80px 5%; }
}

@media (max-width: 768px) {
    /* Prevenir scroll horizontal en móvil */
    body {
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100vw;
    }

    /* Asegurar que todas las secciones quepan */
    section, div, p, h1, h2, h3, h4, h5, h6 {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    /* Hero responsive con logo */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-logo-large {
        width: 200px;
        order: -1;
    }

    .hero-logo-large img {
        max-height: 200px;
    }

    header { padding: 12px 20px; width: 100%; max-width: 100%; }
    nav {
        display: none !important;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 30px 20px;
        z-index: 9999 !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    nav.active {
        display: flex !important;
    }
    nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    nav ul li {
        width: 100%;
    }
    nav ul li a {
        /* ACOMM */
        color:#fff;
        /* /ACOMM */
        display: block;
        padding: 15px 10px;
        width: 100%;
    }
    .menu-toggle {
        display: flex !important;
        z-index: 10000 !important;
        cursor: pointer;
    }
    .theme-toggle { display: none; }

    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .page-header { padding: 140px 5% 70px; }
    .page-header h1 { font-size: 2rem; }

    .section-split { padding: 60px 5%; gap: 40px; }
    .about { padding: 60px 5%; }
    .about-container { padding: 40px 25px; }
    .services { padding: 60px 5%; }
    .contact { padding: 60px 5%; }
    .commitment { padding: 60px 5%; }
    .values-section { padding: 60px 5%; }
    .team-section { padding: 60px 5%; }

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

    /* Responsive certification badges */
    .cert-badges-container {
        gap: 10px;
    }
    .cert-badge-mini {
        padding: 10px 14px;
    }
    .cert-badge-mini img {
        height: 90px;
        width: 90px;
    }

    /* Responsive team social button */
    .team-social .btn,
    .team-social .btn-outline {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .whatsapp-float { width: 55px; height: 55px; font-size: 1.8rem; bottom: 20px; right: 20px; }
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
        font-size: 1rem;
    }
    .back-to-top::after {
        display: none;
    }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    /* Prevenir overflow en pantallas muy pequeñas */
    body {
        overflow-x: hidden !important;
    }

    .hero-content h1 { font-size: 1.6rem; }
    .stat-number { font-size: 2.5rem; }
    .card-body { padding: 25px; }
    .contact-form { padding: 30px 20px; }

    /* Asegurar que las tarjetas no causen overflow */
    .card, .value-card, .stat-item {
        max-width: 100%;
        word-wrap: break-word;
    }
}
