/* ==========================================================================
   ACNorte - Premium CSS Styling Sheet
   Colores Corporativos: Lila Profundo, Gris Acero, Verde Sostenibilidad, Blanco
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
    --primary-color: #3B224C;         /* Lila Profundo Principal */
    --primary-dark: #2E1E3C;          /* Lila Oscuro Profundo (Fondos premium) */
    --primary-light: #4A2C68;         /* Lila Medio para detalles */
    --accent-color: #9568B2;          /* Lila Tecnológico Brillante (Destacados y botones) */
    --accent-hover: #8050A4;          /* Lila Más Oscuro */
    --sustainability-green: #2D6A4F;  /* Verde Sutil Sostenibilidad */
    --green-hover: #1B4332;
    --gray-steel: #5C5562;            /* Gris Acero */
    --gray-light: #F9F7FC;            /* Fondo Claro */
    --text-color: #2B2D42;            /* Texto General Oscuro */
    --text-muted: #6C757D;            /* Texto Atenuado */
    --white: #FFFFFF;
    --font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px rgba(46, 30, 60, 0.05);
    --shadow-medium: 0 15px 40px rgba(46, 30, 60, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(46, 30, 60, 0.08);
}

/* Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
}

p {
    font-weight: 400;
    color: var(--text-color);
}

/* Enlaces Generales */
a {
    transition: var(--transition-smooth);
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   COMPONENT: TOP BAR
   ========================================================================== */
.top-bar {
    background-color: var(--primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--white);
}

.ticker-wrapper {
    height: 24px;
    overflow: hidden;
    position: relative;
}

.ticker-text {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: opacity 0.5s ease-in-out;
}

.text-accent {
    color: var(--accent-color) !important;
}

.topbar-socials .social-link {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
}

.topbar-socials .social-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   COMPONENT: NAVBAR
   ========================================================================== */
.custom-navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(59, 34, 76, 0.05);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.custom-navbar.navbar-scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Brand Logo Premium */
.brand-logo {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 800;
    font-size: 1.5rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: -1px;
    display: inline-block;
}

.brand-logo .logo-a {
    color: var(--accent-color);
}

.brand-logo .logo-n {
    color: var(--white);
}

.brand-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary-dark);
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--gray-steel);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Nav Links */
.custom-navbar .nav-link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    position: relative;
}

.custom-navbar .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--accent-color);
}

.custom-navbar .nav-link:hover:after,
.custom-navbar .nav-link.active:after {
    transform: scaleX(1);
}

/* Button CTA Navbar */
.btn-cta-navbar {
    background-color: var(--primary-color);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 22px !important;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(59, 34, 76, 0.15);
}

.btn-cta-navbar:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 34, 76, 0.05);
    transform: translateY(-2px);
}

/* Toggler Hamburguesa */
.navbar-toggler-icon-custom {
    width: 24px;
    height: 18px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.navbar-toggler-icon-custom span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 100%;
    background: var(--primary-dark);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.navbar-toggler-icon-custom span:nth-child(1) { top: 0px; }
.navbar-toggler-icon-custom span:nth-child(2) { top: 8px; }
.navbar-toggler-icon-custom span:nth-child(3) { top: 16px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(2) {
    opacity: 0;
    left: -60px;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 30, 60, 0.95) 40%, rgba(59, 34, 76, 0.8) 100%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 650px;
    font-weight: 400;
}

/* Hero CTAs */
.btn-premium-accent {
    background-color: var(--accent-color);
    color: var(--primary-dark) !important;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(149, 104, 178, 0.3);
}

.btn-premium-accent:hover {
    background-color: transparent;
    color: var(--white) !important;
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: none;
}

.btn-premium-outline {
    background-color: transparent;
    color: var(--white) !important;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
}

.btn-premium-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Stats Cards in Hero */
.hero-stats-container {
    margin-top: 60px;
    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);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-glass);
}

.stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-uppercase: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2px;
}

.stat-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
}

/* ==========================================================================
   SECTIONS GENERAL DESIGN
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.bg-light-premium {
    background-color: var(--gray-light);
}

.bg-dark-premium {
    background-color: var(--primary-dark);
    color: var(--white);
}

.bg-dark-premium h2, 
.bg-dark-premium h3, 
.bg-dark-premium h4, 
.bg-dark-premium h5,
.bg-dark-premium h6 {
    color: var(--white);
}

/* Section Titles */
.section-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.section-subtitle:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: var(--accent-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title-light {
    color: var(--white);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 50px;
}

.section-desc-light {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   COMPONENT: ABOUT SECTION (HOME)
   ========================================================================== */
.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    max-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.badge-years {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
    line-height: 1;
}

.badge-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-bullets .bullet-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.bullet-icon {
    background-color: rgba(59, 34, 76, 0.05);
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.bullet-content h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.bullet-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   COMPONENT: CARDS PREMIUM (SERVICES DESTACADOS)
   ========================================================================== */
.card-premium {
    background-color: var(--white);
    border: 1px solid rgba(59, 34, 76, 0.05);
    border-radius: 12px;
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card-premium:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition-smooth);
}

.card-premium-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.card-premium h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-premium p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.card-premium-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.card-premium-link i {
    margin-left: 6px;
    transition: var(--transition-smooth);
}

/* Hover effects */
.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: transparent;
}

.card-premium:hover:before {
    transform: scaleY(1);
}

.card-premium:hover .card-premium-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.card-premium:hover .card-premium-link {
    color: var(--accent-color);
}

.card-premium:hover .card-premium-link i {
    transform: translateX(5px);
}

/* Card Green Alternative for Sustainability */
.card-premium.card-green:before {
    background-color: var(--sustainability-green);
}
.card-premium.card-green .card-premium-icon {
    color: var(--sustainability-green);
}
.card-premium.card-green:hover .card-premium-icon {
    color: var(--sustainability-green);
}
.card-premium.card-green:hover .card-premium-link {
    color: var(--sustainability-green);
}

/* ==========================================================================
   COMPONENT: SECTORES QUE ATENDEMOS
   ========================================================================== */
.sector-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 380px;
    box-shadow: var(--shadow-soft);
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition-smooth);
}

.sector-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    z-index: -2;
}

.sector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(46, 30, 60, 0.95) 20%, rgba(46, 30, 60, 0.3) 100%);
    z-index: -1;
    transition: var(--transition-smooth);
}

.sector-content {
    color: var(--white);
    z-index: 2;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.sector-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.sector-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.sector-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    opacity: 0;
    transition: var(--transition-smooth);
    margin-bottom: 0;
}

/* Sectors Hover */
.sector-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.sector-card:hover .sector-bg {
    transform: scale(1.1);
}

.sector-card:hover .sector-overlay {
    background: linear-gradient(to top, rgba(46, 30, 60, 0.98) 40%, rgba(59, 34, 76, 0.4) 100%);
}

.sector-card:hover .sector-content {
    transform: translateY(0);
}

.sector-card:hover p {
    opacity: 1;
}

/* ==========================================================================
   COMPONENT: CTA SECTION (PREMIUM BANNER)
   ========================================================================== */
.premium-cta-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--primary-dark);
    z-index: 1;
    overflow: hidden;
}

.premium-cta-section:after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(149, 104, 178, 0.08) 0%, transparent 70%);
    z-index: -1;
}

/* ==========================================================================
   COMPONENT: TESTIMONIALS STYLE CORPORATIVO
   ========================================================================== */
.testimonial-card {
    background-color: var(--white);
    border: 1px solid rgba(59, 34, 76, 0.05);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    height: 100%;
}

.testimonial-quote-icon {
    font-size: 3rem;
    color: rgba(59, 34, 76, 0.05);
    position: absolute;
    top: 20px;
    left: 30px;
}

.testimonial-rating {
    color: #FFD166;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--text-color);
    font-style: italic;
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.testimonial-user {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(59, 34, 76, 0.1);
}

.testimonial-meta h5 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   PAGE: NOSOTROS (ABOUT.PHP)
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 120px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
}

.breadcrumb-custom {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-custom a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-custom a:hover {
    color: var(--white);
}

/* Directora Islenia Ruiz Section */
.director-img-container {
    position: relative;
}

.director-img {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.director-info-card {
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

/* MVV Cards (Mision Vision Valores) */
.mvv-card {
    background-color: var(--white);
    border: 1px solid rgba(59, 34, 76, 0.05);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    height: 100%;
    transition: var(--transition-smooth);
}

.mvv-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(59, 34, 76, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px auto;
    transition: var(--transition-smooth);
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.mvv-card:hover .mvv-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   PAGE: SERVICIOS (SERVICIOS.PHP)
   ========================================================================== */
.service-detail-card {
    background-color: var(--white);
    border: 1px solid rgba(59, 34, 76, 0.05);
    border-radius: 12px;
    padding: 40px;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-detail-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: rgba(149, 104, 178, 0.2);
    transform: translateY(-3px);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(59, 34, 76, 0.05);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.service-detail-card:hover .service-icon-box {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-benefits-list {
    margin-top: auto;
    padding-left: 0;
    list-style: none;
}

.service-benefits-list li {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.service-benefits-list li i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 5px;
    font-size: 0.8rem;
}

/* ==========================================================================
   PAGE: CONTACTO (CONTACTO.PHP)
   ========================================================================== */
.contact-info-card {
    background-color: var(--white);
    border: 1px solid rgba(59, 34, 76, 0.05);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(59, 34, 76, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info-text h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info-text p,
.contact-info-text a {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    text-decoration: none;
}

.contact-info-text a:hover {
    color: var(--accent-color);
}

/* Form Styling Premium */
.form-premium .form-label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.form-premium .form-control,
.form-premium .form-select {
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(59, 34, 76, 0.1);
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--transition-smooth);
    background-color: var(--gray-light);
}

.form-premium .form-control:focus,
.form-premium .form-select:focus {
    box-shadow: 0 0 0 4px rgba(149, 104, 178, 0.15);
    border-color: var(--accent-color);
    background-color: var(--white);
    outline: none;
}

.form-premium .btn-submit-premium {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    width: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(59, 34, 76, 0.15);
}

.form-premium .btn-submit-premium:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 30, 60, 0.2);
}

/* Map Wrapper */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

/* ==========================================================================
   COMPONENT: WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-floating-container {
    position: fixed;
    bottom: 95px;
    right: 25px;
    z-index: 998;
    display: flex;
    align-items: center;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition-smooth);
    animation: pulse-green 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-tooltip {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 15px;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
    order: -1; /* Muestra a la izquierda del botón */
}

.whatsapp-floating-container:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   COMPONENT: FLOATING CHATBOT WIDGET
   ========================================================================== */
.chatbot-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.chatbot-trigger-btn {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(59, 34, 76, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.chatbot-trigger-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.badge-online {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: #2ec4b6;
    border: 2px solid var(--white);
    border-radius: 50%;
}

/* Chat window */
.chatbot-window {
    width: 380px;
    height: 520px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(59, 34, 76, 0.1);
    position: absolute;
    bottom: 75px;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 15px 20px;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.text-success-light {
    color: #4ade80 !important;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chatbot-close-btn:hover {
    color: var(--white);
}

/* Chat Messages */
.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--gray-light);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Chat Bubbles */
.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background-color: var(--white);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(46, 30, 60, 0.03);
}

.chat-msg.user {
    background-color: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(59, 34, 76, 0.1);
}

/* Suggestions */
.chatbot-suggestions {
    background-color: var(--gray-light);
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(59, 34, 76, 0.05);
}

.suggest-btn {
    background-color: var(--white);
    border: 1px solid rgba(59, 34, 76, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

/* Input Form */
.chatbot-input-container {
    display: flex;
    padding: 12px 15px;
    background-color: var(--white);
    border-top: 1px solid rgba(59, 34, 76, 0.08);
}

.chatbot-input-field {
    border-radius: 20px;
    border: 1px solid rgba(59, 34, 76, 0.15);
    padding: 8px 15px;
    font-size: 0.9rem;
}

.chatbot-input-field:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.btn-send-chatbot {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.btn-send-chatbot:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* Chat Footer WhatsApp Call-to-action */
.chatbot-footer-cta {
    background-color: #E8ECEF;
    padding: 12px;
    font-size: 0.8rem;
    border-top: 1px solid rgba(59, 34, 76, 0.05);
}

.chatbot-footer-cta span {
    color: var(--primary-dark);
    font-weight: 600;
}

.chatbot-whatsapp-cta-btn {
    background-color: #25D366;
    color: var(--white);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 5px;
    transition: var(--transition-smooth);
}

.chatbot-whatsapp-cta-btn:hover {
    background-color: #128C7E;
    color: var(--white);
    transform: translateY(-1px);
}

/* ==========================================================================
   COMPONENT: FOOTER PREMIUM
   ========================================================================== */
.footer-premium {
    background-color: var(--primary-dark);
    color: var(--white);
    border-top: 4px solid var(--primary-color);
    font-size: 0.95rem;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.footer-brand .logo-a {
    color: var(--accent-color);
}

.footer-brand .logo-n {
    color: var(--white);
}

.footer-description {
    line-height: 1.6;
}

.footer-socials .footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-socials .footer-social-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact li {
    font-size: 0.9rem;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991.98px) {
    .custom-navbar {
        background-color: var(--white);
        padding: 10px 0;
    }
    .custom-navbar .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        border-radius: 8px;
        box-shadow: var(--shadow-medium);
        margin-top: 15px;
    }
    .custom-navbar .nav-link {
        padding: 10px 0 !important;
    }
    .custom-navbar .nav-link:after {
        left: 0;
        right: 0;
    }
    .btn-cta-navbar {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .about-image-wrapper {
        margin-bottom: 50px;
    }
    .about-experience-badge {
        right: 20px;
    }
    .director-img-container {
        margin-bottom: 50px;
    }
    .chatbot-window {
        width: 320px;
        height: 480px;
        right: -10px;
        bottom: 75px;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .whatsapp-btn, .chatbot-trigger-btn {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .whatsapp-floating-container {
        bottom: 85px;
        right: 15px;
    }
    .chatbot-wrapper {
        bottom: 20px;
        right: 15px;
    }
}

/* Custom Dropdown Menu Lila Premium */
.custom-dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 34, 76, 0.1);
    border-radius: 10px;
    padding: 10px;
    min-width: 220px;
    margin-top: 15px !important;
}

.custom-dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.custom-dropdown-menu .dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.custom-dropdown-menu .dropdown-item:hover i {
    color: var(--white) !important;
}

.custom-dropdown-menu .dropdown-divider {
    border-color: rgba(59, 34, 76, 0.08);
}

/* ==========================================================================
   PRELOADER & MICRO-ANIMATIONS (Lila Premium)
   ========================================================================== */

/* 1. Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spinnerRotate 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

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

/* 2. Hero entrance animations */
.hero-content h1 {
    animation: slideUpHero 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content p {
    animation: slideUpHero 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .d-flex {
    animation: slideUpHero 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. General micro-interactions */
.btn-cta-navbar, .btn-premium-accent, .btn-premium-outline {
    position: relative;
    overflow: hidden;
}

.btn-cta-navbar::after, .btn-premium-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
}

.btn-cta-navbar:hover::after, .btn-premium-accent:hover::after {
    left: 125%;
    opacity: 1;
    transition: 0.75s;
}

/* Float hover for service icon boxes */
.service-detail-card:hover .service-icon-box {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(149, 104, 178, 0.3);
}

.card-premium:hover .card-premium-icon {
    transform: translateY(-5px) scale(1.05);
}
