/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c63ff;
    --primary-dark: #5a52d3;
    --secondary: #00d4ff;
    --accent: #ff6b9d;
    --dark: #0a0a0f;
    --dark-light: #1a1a24;
    --gray: #8a8aa3;
    --light: #f5f5ff;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Contenedor */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.btn-block {
    width: 100%;
    display: block;
}

.text-center {
    text-align: center;
}

/* ============================================
   HEADER CON LOGO AL 25% DEL ANCHO
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* LOGO SIMPLIFICADO - OCUPA 25% DEL ANCHO */
.logo-container {
    width: 25%; /* Logo ocupa el 25% del header */
    display: flex;
    align-items: center;
}

.logo {
    display: block;
    width: 100%;
    text-decoration: none;
}

.logo-img {
    width: 100%; /* La imagen ocupa el 100% del contenedor del 25% */
    height: auto;
    max-height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    width: 70%; /* El menú ocupa el 70% restante */
    justify-content: flex-end;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--light);
}

/* Sección Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 30% 30%, rgba(108, 99, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Sección Servicios */
.services {
    padding: 100px 0;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(108, 99, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Estilos específicos para el carrusel Swiper */
.services-swiper {
    width: 100%;
    height: auto;
    padding: 20px 10px 60px;
    overflow: hidden;
}

.services-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.service-card {
    background-color: var(--dark-light);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(108, 99, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-description {
    color: var(--gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-top: auto;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 0.9rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    background-color: var(--dark-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

.swiper-pagination-bullet {
    background-color: var(--gray);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 1;
}

/* Asegurarse que los slides del swiper tengan ancho correcto */
.services-swiper .swiper-slide {
    height: auto;
    width: 100%;
}

/* Sección Sobre Nosotros */
.about {
    padding: 100px 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    background-color: var(--dark-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    color: var(--gray);
}

.video-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Relación 16:9 */
    background-color: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 15, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: var(--transition);
}

.video-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.6);
}

/* Sección Proyectos */
.projects {
    padding: 100px 0;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(255, 107, 157, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--dark-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 10, 12, 0.95), rgba(15, 10, 12, 0.7), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.project-overlay p {
    color: #e6e6e6;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Sección Contacto */
.contact {
    padding: 100px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 80%, rgba(108, 99, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card {
    background-color: var(--dark-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.contact-form {
    background-color: var(--dark-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-light);
    padding: 70px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo p {
    color: var(--gray);
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet - Pantallas medianas */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    /* Logo en tablet - sigue ocupando 25% */
    .logo-container {
        width: 25%;
    }
    
    .logo-img {
        max-height: 70px;
    }
    
    .navbar {
        height: 70px;
    }
}

/* Móviles - Pantallas pequeñas */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--dark-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    /* Logo en móviles - aumenta a 40% */
    .logo-container {
        width: 40%;
    }
    
    .logo-img {
        max-height: 65px;
    }
    
    .navbar {
        height: 65px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .header.scrolled {
        padding: 10px 0;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* Logo en móviles pequeños - 50% */
    .logo-container {
        width: 50%;
    }
    
    .logo-img {
        max-height: 45px;
    }
    
    .navbar {
        height: 45px;
    }
}

/* Pantallas muy pequeñas (teléfonos plegables) */
@media (max-width: 400px) {
    /* Logo en pantallas muy pequeñas - 60% */
    .logo-container {
        width: 60%;
    }
    
    .logo-img {
        max-height: 40px;
    }
    
    .navbar {
        height: 40px;
    }
    
    .nav-menu {
        top: 70px;
    }
}

/* ===================================
   Widget de Chat Flotante - FIX MOBILE
   =================================== */

.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Poppins', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Botón Principal */
.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 10000; /* Aumentado para móviles */
}

.chat-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.chat-button:hover::before {
    transform: scale(1);
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.chat-button:active {
    transform: scale(0.95);
}

.chat-button i {
    font-size: 28px;
    color: white;
    position: relative;
    z-index: 1;
}

/* Menú del Chat */
.chat-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 9998; /* Debajo del botón pero sobre otros elementos */
}

.chat-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header del Chat */
.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Body del Chat */
.chat-body {
    padding: 24px 20px;
}

.chat-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Opciones de Chat */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.chat-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.chat-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.chat-option:hover::before {
    width: 100%;
}

.chat-option:hover .option-text h4,
.chat-option:hover .option-text p {
    color: white;
}

.chat-option:hover .option-icon {
    background: rgba(255, 255, 255, 0.2);
}

.chat-option:hover .email-icon i {
    color: white;
}

.chat-option:hover .whatsapp-icon i {
    color: white;
}

/* Iconos de las Opciones */
.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.option-icon i {
    font-size: 22px;
    transition: all 0.3s ease;
}

.email-icon {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.email-icon i {
    color: #667eea;
}

.whatsapp-icon {
    background: linear-gradient(135deg, #dcf8c6 0%, #c8e6c9 100%);
}

.whatsapp-icon i {
    color: #25D366;
}

/* Texto de las Opciones */
.option-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.option-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
    transition: all 0.3s ease;
}

.option-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
    transition: all 0.3s ease;
}

/* Footer del Chat */
.chat-footer {
    padding: 14px 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.chat-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.chat-footer a:hover {
    color: #764ba2;
}

/* Animación de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animación del botón */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.chat-button {
    animation: pulse 2s infinite;
}

/* ============================================
   FIX PARA MÓVILES - ESTILOS ESPECÍFICOS
   ============================================ */

/* Tablet - Pantallas medianas */
@media (max-width: 992px) {
    .chat-widget {
        bottom: 25px;
        right: 25px;
    }
    
    .chat-menu {
        width: 320px;
    }
}

/* Móviles - Pantallas pequeñas */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-button {
        width: 56px;
        height: 56px;
    }
    
    .chat-button i {
        font-size: 26px;
    }
    
    .chat-menu {
        width: calc(100vw - 40px);
        max-width: 340px;
        right: 0;
        bottom: 70px;
    }
    
    /* Asegurar que el menú no se salga de la pantalla */
    .chat-menu.active {
        animation: slideInUp 0.3s ease-out;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-button {
        width: 52px;
        height: 52px;
    }
    
    .chat-button i {
        font-size: 24px;
    }
    
    .chat-menu {
        width: calc(100vw - 30px);
        bottom: 65px;
    }
    
    .chat-header {
        padding: 20px 15px;
    }
    
    .chat-body {
        padding: 20px 15px;
    }
    
    .chat-avatar {
        width: 45px;
        height: 45px;
    }
    
    .chat-header h3 {
        font-size: 16px;
    }
    
    .option-icon {
        width: 44px;
        height: 44px;
    }
    
    .option-icon i {
        font-size: 20px;
    }
}

/* Pantallas muy pequeñas (teléfonos plegables) */
@media (max-width: 400px) {
    .chat-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .chat-button {
        width: 48px;
        height: 48px;
    }
    
    .chat-button i {
        font-size: 22px;
    }
    
    .chat-menu {
        width: calc(100vw - 20px);
        bottom: 60px;
    }
    
    .chat-header {
        padding: 18px 12px;
        gap: 10px;
    }
    
    .chat-avatar {
        width: 40px;
        height: 40px;
    }
    
    .chat-header h3 {
        font-size: 15px;
    }
    
    .chat-subtitle {
        font-size: 13px;
    }
    
    .chat-option {
        padding: 14px;
        gap: 12px;
    }
    
    .option-text h4 {
        font-size: 14px;
    }
    
    .option-text p {
        font-size: 12px;
    }
}

/* Ajuste para iOS Safari */
@supports (-webkit-touch-callout: none) {
    .chat-widget {
        /* Ajuste específico para Safari en iOS */
        bottom: calc(30px + env(safe-area-inset-bottom));
        right: calc(30px + env(safe-area-inset-right));
    }
    
    @media (max-width: 768px) {
        .chat-widget {
            bottom: calc(20px + env(safe-area-inset-bottom));
            right: calc(20px + env(safe-area-inset-right));
        }
    }
    
    @media (max-width: 576px) {
        .chat-widget {
            bottom: calc(15px + env(safe-area-inset-bottom));
            right: calc(15px + env(safe-area-inset-right));
        }
    }
    
    @media (max-width: 400px) {
        .chat-widget {
            bottom: calc(10px + env(safe-area-inset-bottom));
            right: calc(10px + env(safe-area-inset-right));
        }
    }
}

/* Asegurar que el botón esté siempre visible en móviles */
@media (hover: none) and (pointer: coarse) {
    .chat-button:hover {
        transform: scale(1);
    }
    
    .chat-button:active {
        transform: scale(0.95);
    }
    
    .chat-option:hover {
        transform: none;
        border-color: #e8e8e8;
    }
    
    .chat-option:active {
        transform: translateY(-2px);
        border-color: #667eea;
    }
}

/* ------------------------------ */
/*   SECCIÓN CONTACTO / VIDEOS    */
/* ------------------------------ */

.contact {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Columna de videos */
.videos-section,
.contact-info-section {
    flex: 1 1 450px;
}

/* Títulos */
.section-subheader .subsection-title {
    font-size: 28px;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    
    /* Recomendación de VSCode para compatibilidad */
    background-clip: text;

    /* Versión funcional en navegadores WebKit */
    -webkit-background-clip: text;

    /* Hace el texto transparente para mostrar el gradiente */
    color: transparent;
}

.subsection-subtitle {
    font-size: 16px;
    margin-top: 8px;
}

.videos-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Tarjeta de video */
.video-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.video-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.video-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.video-icon i {
    font-size: 28px;
    color: #6a00ff;
}

/* ---------------------------------- */
/*  🚀 FIX PARA VIDEOS VERTICALES     */
/* ---------------------------------- */

.video-player {
    width: 100%;
    background: #000;

    /* Mantener proporción vertical real */
    aspect-ratio: 9 / 16;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden; /* evita recortes indeseados */
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* ⭐ muestra el video completo sin recortar */
    background: #000;
    display: block;
}

/* Descripción del video */
.video-description {
    font-size: 14px;
    margin-top: 10px;
    color: #444;
}

/* Columna de información de contacto */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.info-icon i {
    font-size: 32px;
    color: #6a00ff;
    margin-bottom: 8px;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}
