/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --black-deep: #000000;
    --black-light: #1a1a1a;
    --black-card: #141414;
    --blue: #1e90ff;
    --blue-dark: #0a6edf;
    --blue-deep: #0050b3;
    --blue-glow: #4da6ff;
    --gold: #d4af37;
    --gold-light: #f0d060;
    --gold-dark: #b8960c;
    --gold-pale: #fff8dc;
    --white: #ffffff;
    --gray: #a0a0a0;
    --gray-dark: #2a2a2a;
    --gradient-gold: linear-gradient(135deg, #d4af37, #f0d060, #b8960c);
    --gradient-blue: linear-gradient(135deg, #1e90ff, #4da6ff, #0a6edf);
    --gradient-dark: linear-gradient(135deg, #0a0a0a, #1a1a1a, #0a0a0a);
    --gradient-luxury: linear-gradient(135deg, #d4af37, #1e90ff);
    --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.15);
    --shadow-blue: 0 10px 40px rgba(30, 144, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--black-deep);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== SELECTOR DE IDIOMA ===== */
.lang-selector {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 1001;
}

.lang-current {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-current:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.lang-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 6px;
    min-width: 150px;
    display: none;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: langFadeIn 0.2s ease;
}

.lang-selector.open .lang-dropdown {
    display: flex;
}

@keyframes langFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.lang-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
}

.lang-option.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    font-weight: 600;
}

.lang-flag {
    font-size: 1.2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 30px rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    letter-spacing: 1px;
}

.logo i {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar.scrolled .logo {
    color: var(--white);
}

.logo span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.navbar.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.admin-btn {
    background: var(--gradient-gold) !important;
    color: var(--black-deep) !important;
    padding: 8px 24px !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.admin-btn::after {
    display: none;
}

.admin-btn:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .hamburger span {
    background: var(--gold-light);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--black-deep);
}

/* Imagen de fondo subida por el usuario */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000" viewBox="0 0 1440 320"><path fill="%23d4af37" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    transition: background-image 0.5s ease;
    z-index: 0;
}

.hero-bg.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video de fondo del hero */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none;
    pointer-events: none;
}

.hero-video.active {
    display: block;
}

/* Overlay oscuro sobre la imagen de fondo */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.6) 30%,
            rgba(0, 0, 0, 0.55) 60%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Botón para subir imagen de fondo */
.hero-upload-container {
    position: absolute;
    top: 100px;
    right: 40px;
    z-index: 10;
}

.hero-upload-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: var(--gold-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    user-select: none;
}

.hero-upload-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.hero-upload-btn i {
    font-size: 1.1rem;
}

/* ===== CARRUSEL DE IMÁGENES HERO ===== */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

.carousel-arrow:hover {
    background: rgba(212, 175, 55, 0.35);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    color: var(--gold-light);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--gold);
    border-color: var(--gold-light);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(212, 175, 55, 0.5);
    border-color: var(--gold);
}

/* Capa de fondo para animación slide */
.hero-bg-next {
    opacity: 0;
    pointer-events: none;
}

/* Animaciones de deslizamiento horizontal */
@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-bg.slide-out-left {
    animation: slideOutLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-bg.slide-out-right {
    animation: slideOutRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-bg-next.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-bg-next.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Deshabilitar la transición antigua en hero-bg */
.hero-bg {
    transition: none;
}

/* Indicador de imagen cargada */
.upload-status {
    position: absolute;
    top: 155px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-status .status-badge {
    padding: 6px 16px;
    background: rgba(30, 144, 255, 0.2);
    border: 1px solid rgba(30, 144, 255, 0.4);
    border-radius: 20px;
    color: var(--blue-glow);
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.upload-status .remove-btn {
    padding: 6px 14px;
    background: rgba(255, 70, 70, 0.2);
    border: 1px solid rgba(255, 70, 70, 0.4);
    border-radius: 20px;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.upload-status .remove-btn:hover {
    background: rgba(255, 70, 70, 0.4);
    border-color: #ff6b6b;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 50%, rgba(30, 144, 255, 0.03) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(2%, -2%) rotate(1deg);
    }

    66% {
        transform: translate(-1%, 1%) rotate(-1deg);
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000" viewBox="0 0 1440 320"><path fill="%23d4af37" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 80px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--black-deep);
    box-shadow: 0 5px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gradient-gold);
    color: var(--black-deep);
    border-color: transparent;
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    border-radius: 1px;
    position: relative;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 0;
    }

    100% {
        opacity: 0;
        top: 15px;
    }
}

/* ===== SECTIONS GENERAL ===== */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 20px auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    margin-bottom: 60px;
    font-weight: 300;
}

/* ===== SECCIONES DINAMICAS ===== */
.dynamic-section {
    position: relative;
}

.dynamic-section.dark {
    background: var(--black-deep);
    color: var(--white);
}

.dynamic-section.black-light {
    background: var(--black-light);
    color: var(--white);
}

.dynamic-section.gradient-dark {
    background: linear-gradient(180deg, var(--black-deep) 0%, var(--black-light) 50%, var(--black-deep) 100%);
    color: var(--white);
}

.dynamic-section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.dynamic-section-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dynamic-section-content p {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.dynamic-section-content img {
    max-width: 100%;
    border-radius: var(--radius);
}

.dynamic-section-content .cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.dynamic-section-content .cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.dynamic-section-content .cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.col-item {
    text-align: center;
    padding: 30px;
    background: rgba(212, 175, 55, 0.03);
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.col-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.col-item h3 {
    margin-bottom: 10px;
    color: var(--white);
}

/* ===== SERVICIOS ===== */
.servicios {
    background: var(--black-deep);
    position: relative;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.servicio-card {
    background: var(--black-card);
    padding: 45px 35px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.08);
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.servicio-card:hover::before {
    transform: scaleX(1);
}

.servicio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-gold);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.servicio-icon i {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.servicio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.servicio-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* ===== SERVICIOS: 2 PILARES ===== */
.servicios-pilares {
    grid-template-columns: 1fr 1fr !important;
    max-width: 1100px;
    margin: 0 auto;
}

.pilar-card {
    text-align: left !important;
    padding: 45px 45px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
}

.pilar-card .servicio-icon {
    margin: 0 0 20px 0;
}

.pilar-card h3 {
    width: 100%;
}

.pilar-desc {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1rem !important;
    margin-bottom: 20px;
    line-height: 1.7;
}

.pilar-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.pilar-bullets li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pilar-bullets li:last-child {
    border-bottom: none;
}

.pilar-bullets li i {
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===== SHOWREEL / PORTAFOLIO ===== */
.showreel-container {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.showreel-placeholder {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.05), rgba(212, 175, 55, 0.05));
    border: 2px dashed rgba(212, 175, 55, 0.2);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.showreel-placeholder:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.08), rgba(212, 175, 55, 0.08));
}

.showreel-placeholder i {
    font-size: 4rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 15px;
}

.showreel-placeholder p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.showreel-placeholder span {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

/* ===== PORTAFOLIO ===== */
.portafolio {
    background: var(--black-light);
    position: relative;
}

.portafolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(30, 144, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.filtro-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filtro {
    padding: 12px 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.filtro:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.filtro.active,
.filtro:hover {
    background: var(--gradient-gold);
    color: var(--black-deep);
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

.portafolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.portafolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.08);
}

.portafolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.2);
}

.portafolio-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portafolio-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.portafolio-img i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.portafolio-info {
    padding: 25px;
    background: var(--black-card);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.portafolio-info h3 {
    margin-bottom: 5px;
    color: var(--white);
    font-size: 1.1rem;
}

.portafolio-info p {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== NOSOTROS ===== */
.nosotros {
    background: var(--black-deep);
    position: relative;
}

.nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nosotros-texto h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nosotros-texto p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 35px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.imagen-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(30, 144, 255, 0.1));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
}

.imagen-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.imagen-placeholder i {
    font-size: 5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

/* ===== CONTACTO ===== */
.contacto {
    background: var(--black-light);
    position: relative;
}

.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: center;
}

.info-item i {
    width: 55px;
    height: 55px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--white);
}

.info-item p {
    color: rgba(255, 255, 255, 0.5);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacto-form input,
.contacto-form textarea {
    padding: 16px 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--black-card);
    color: var(--white);
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black-deep);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer .logo {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--gold-light);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--gold);
}

.social-links a:hover {
    background: var(--gradient-gold);
    color: var(--black-deep);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== ANIMACIONES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION HIDDEN UTILITY ===== */
.section-hidden {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .nosotros-content,
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .dynamic-section-content .cols-2 {
        grid-template-columns: 1fr;
    }

    .dynamic-section-content .cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 80px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .portafolio-grid {
        grid-template-columns: 1fr;
    }

    .dynamic-section-content .cols-3,
    .dynamic-section-content .cols-4 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .stats {
        justify-content: center;
    }

    .nosotros-texto h2 {
        font-size: 2.2rem;
    }

    /* Responsive para el botón de subida */
    .hero-upload-container {
        top: 20px;
        right: 20px;
    }

    .hero-upload-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .hero-upload-btn span {
        display: none;
    }
}

/* ===== CHATBOT WIDGET ===== */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Botón flotante */
.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.5);
}

.chatbot-toggle i {
    font-size: 1.5rem;
    color: #0a0a0a;
}

.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e84393;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(232, 67, 147, 0.4);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Ventana del chat */
.chatbot-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 340px;
    max-height: 480px;
    background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(240, 208, 96, 0.06));
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.chatbot-header-info i {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chatbot-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.chatbot-close:hover {
    color: var(--gold);
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
}

.chatbot-body::-webkit-scrollbar {
    width: 4px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

/* Mensajes */
.chatbot-msg {
    display: flex;
    gap: 10px;
    animation: msgFadeIn 0.3s ease;
}

@keyframes msgFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-msg.bot {
    align-self: flex-start;
}

.chatbot-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chatbot-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.chatbot-msg.bot .chatbot-msg-avatar {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
}

.chatbot-msg.user .chatbot-msg-avatar {
    background: rgba(30, 144, 255, 0.15);
    color: var(--blue-glow);
}

.chatbot-msg-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.chatbot-msg.bot .chatbot-msg-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 4px;
}

.chatbot-msg.user .chatbot-msg-bubble {
    background: rgba(30, 144, 255, 0.12);
    border: 1px solid rgba(30, 144, 255, 0.15);
    border-bottom-right-radius: 4px;
}

/* Preguntas rápidas (opciones) */
.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.chatbot-option {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 0.85rem;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}

.chatbot-option:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--gold-light);
    transform: translateX(4px);
}

.chatbot-option i {
    margin-right: 8px;
    opacity: 0.6;
    font-size: 0.75rem;
}

/* Botón para reiniciar chat */
.chatbot-reset {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.78rem;
    margin-top: 6px;
    transition: all 0.2s ease;
    align-self: flex-end;
}

.chatbot-reset:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
}

.chatbot-reset i {
    margin-right: 6px;
}

/* Responsive chatbot */
@media (max-width: 420px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        right: -8px;
        max-height: 60vh;
    }

    .chatbot-body {
        max-height: 50vh;
    }
}

/* ===== BOTONES DE NOSOTROS ===== */
.nosotros-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* ===== MODAL DE REFERENCIAS ===== */
.modal-referencias {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-referencias.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-referencias-content {
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-referencias-content h2 {
    text-align: center;
    margin-bottom: 30px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.modal-referencias-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    line-height: 1;
}

.modal-referencias-close:hover {
    color: var(--gold);
}

.modal-agregar {
    max-width: 550px;
}

.modal-agregar .form-group {
    margin-bottom: 20px;
}

.modal-agregar .form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-agregar .form-group input,
.modal-agregar .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: #0a0a0a;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.modal-agregar .form-group input:focus,
.modal-agregar .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.modal-agregar .form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-agregar .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* ===== REFERENCIAS GRID ===== */
.referencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.referencia-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    padding: 25px;
    transition: var(--transition);
    position: relative;
}

.referencia-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.referencia-card .ref-quote {
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 10px;
}

.referencia-card .ref-texto {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    font-style: italic;
}

.referencia-card .ref-autor {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.referencia-card .ref-empresa {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ===== REFERENCIA LOGIN MSG ===== */
#referenciaLoginMsg {
    display: none;
}

#referenciaLoginMsg.show {
    display: block;
}

/* ===== GOOGLE LOGIN BUTTON ===== */
#btnGoogleLogin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#btnGoogleLogin i {
    font-size: 1.2rem;
}

/* ===== ADMIN REFERENCIAS ===== */
.referencia-card-admin {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.referencia-card-admin .ref-info {
    flex: 1;
}

.referencia-card-admin .btn-delete-ref {
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff6b6b;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.referencia-card-admin .btn-delete-ref:hover {
    background: rgba(255, 70, 70, 0.3);
    border-color: #ff6b6b;
}

/* ============================================= */
/* =====  BOTÓN FLOTANTE DE WHATSAPP  ===== */
/* ============================================= */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4), 0 8px 48px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6), 0 12px 56px rgba(0, 0, 0, 0.4);
    background: #20bd5a;
}

.whatsapp-float-btn:active {
    transform: scale(0.95);
}

.whatsapp-float-btn i {
    font-size: 2rem;
    color: #fff;
    position: relative;
    z-index: 2;
}

/* Onda de pulso animada */
.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    z-index: 1;
    animation: whatsapp-pulse-anim 2.5s ease-out infinite;
    opacity: 0;
}

@keyframes whatsapp-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    70% {
        transform: scale(1.8);
        opacity: 0;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Tooltip lateral */
.whatsapp-tooltip {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 14px;
    padding: 10px 16px;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.35s ease;
    opacity: 0;
    transform: translateX(12px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.whatsapp-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-tooltip-text {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.whatsapp-tooltip-seccion {
    color: #25D366;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Flechita del tooltip apuntando al botón */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid rgba(37, 211, 102, 0.35);
}

/* Botón de WhatsApp en el chatbot */
.chatbot-option i.fa-whatsapp {
    color: #25D366;
}

/* Responsive: en móvil el tooltip va arriba */
@media (max-width: 768px) {
    .whatsapp-float-container {
        bottom: 20px;
        left: 20px;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 8px;
    }

    .whatsapp-float-btn {
        width: 55px;
        height: 55px;
    }

    .whatsapp-float-btn i {
        font-size: 1.75rem;
    }

    .whatsapp-tooltip {
        transform: translateY(8px);
    }

    .whatsapp-tooltip.show {
        transform: translateY(0);
    }

    .whatsapp-tooltip::after {
        top: -8px;
        right: auto;
        left: 20px;
        transform: none;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid rgba(37, 211, 102, 0.35);
        border-top: none;
    }

    .whatsapp-tooltip-text {
        font-size: 0.8rem;
    }

    .whatsapp-tooltip-seccion {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-float-container {
        bottom: 16px;
        left: 14px;
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float-btn i {
        font-size: 1.5rem;
    }

    .whatsapp-tooltip {
        max-width: 200px;
        white-space: normal;
        padding: 8px 12px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nosotros-buttons {
        justify-content: center;
    }

    .referencias-grid {
        grid-template-columns: 1fr;
    }

    .modal-referencias-content {
        padding: 25px 20px;
        width: 95%;
    }
}