/* ============================================= */
/* RESET Y VARIABLES GLOBALES */
/* ============================================= */

/* Reset básico para eliminar márgenes y paddings por defecto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS globales para mantener consistencia en colores y estilos */
:root {
    /* Paleta de colores principal */
    --primary: #005f73;
    /* Azul oscuro principal */
    --secondary: #005f73;
    /* Azul turquesa secundario */
    --accent: #94d2bd;
    /* Verde azulado para acentos */
    --dark: #001219;
    /* Negro azulado para fondos oscuros */
    --light: #e9d8a6;
    /* Amarillo claro para detalles */
    --white: #ffffff;
    /* Blanco puro */
    --red-accent: #ff0000;
    /* Rojo para botones/énfasis */
    --info-blue: #1976d2;
    /* Azul para botones informativos */

    /* Colores de texto */
    --text-color: #333;
    /* Color de texto principal */
    --light-text: #f8f9fa;
    /* Texto claro */

    /* Fondos */
    --bg-color: #f8f9fa;
    /* Color de fondo claro */
    --card-bg: #ffffff;
    /* Fondo de tarjetas */

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* Tipografía */
    --main-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --title-font: "Arial Black", "Arial Bold", Gadget, sans-serif;

    /* Transiciones y bordes */
    --transition: all 0.3s ease;
    --radius: 8px;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

/* ============================================= */
/* ESTILOS GENERALES DEL CUERPO */
/* ============================================= */

body {
    font-family: "Arial", sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    color: var(--text-color);
    background-color: var(--bg-color);
}



/* ============================================= */
/* BARRA DE NAVEGACIÓN */
/* ============================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
    z-index: 1000;
    background-color: rgba(80, 58, 58, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(160, 156, 156, 0.1);
    border-radius: 0 0 70px 70px;
    animation: slideFromTop 1s ease-out;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 150px;
    height: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 1px 1px 3px rgba(250, 247, 247, 0.5);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: rgb(14, 12, 12);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menú hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* ============================================= */
/* BARRA SOCIAL LATERAL */
/* ============================================= */

.social-bar-container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-30px);
    z-index: 2000;
    opacity: 0;
    animation: fadeSlideInLeft 1s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes fadeSlideInLeft {
    from {
        transform: translateY(-50%) translateX(-40px);
        opacity: 0;
        filter: blur(5px);
    }

    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
        filter: blur(0);
    }
}



.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
    transition: all 0.4s ease;
    text-decoration: none;
}

.social-link i {
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s ease;
}

.social-text {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);

    padding: 5px 10px;
    border-radius: 0 4px 4px 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    margin-left: 55px;
}

.social-link:hover {
    width: 60px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.social-link:hover i {
    transform: scale(1.2);
}

.social-link:hover .social-text {
    opacity: 1;
    margin-left: 10px;
}

/* Colores específicos para cada red social */
.social-facebook {
    background-color: #1877f2;
}

.social-tiktok {
    background-color: #000000;
}

.social-twitter {
    background-color: #1da1f2;
}

.social-youtube {
    background-color: #ff0000;
}

.social-web {
    background-color: #4caf50;
}


/* ============================================= */
/* SECCIÓN PRINCIPAL / HERO */
/* ============================================= */

.main-container {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background: url("https://t4.ftcdn.net/jpg/13/89/48/07/360_F_1389480785_Lje4sKlCudGpcWeV2bem2dozgU9ngEWa.jpg") center/cover;
}

.content-wrapper {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.text-section {
    flex: 1;
    padding: 30px;
    background: rgba(0, 0, 0, 0);
    border-radius: 20px;
    animation: slideFromLeft 1.5s ease-out;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.text-container {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
}

.line-1,
.line-2 {
    color: #010202;
    display: block;
    margin-bottom: 15px;
}




.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #7f8c8d;
    margin-top: 25px;
    max-width: 500px;
}

.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideFromRight 1.5s ease-out;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;

    transition: transform 0.5s ease;
}

.image-section img:hover {
    transform: scale(1.03);
}


/* ============================================= */
/* ESTILOS GENERALES DE TIPOGRAFÍA Y CONTENEDORES */
/* ============================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================= */
/* BOTONES (ESTILOS GENERALES) */
/* ============================================= */

.btn-info {
    display: inline-block;
    background: #03505f;
    color: #b7d6df;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 4px 15px rgba(5, 90, 107, 0.3);
    border: none;
    cursor: pointer;
    font-family: var(--main-font);
}

.btn-info:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(7, 83, 99, 0.4);
}

.btn-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, transparent, #9de3ad, transparent);
    transition: 0.5s;
}

.btn-info:hover::before {
    left: 100%;
}

/* ============================================= */
/* CARRUSELES */
/* ============================================= */

.carousel-section {
    max-width: 1600px;
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    margin: 0 auto;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.carousel-title span {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.carousel-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.divider {
    height: 5px;
    width: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    margin: 40px auto;
    border-radius: 3px;
    opacity: 0.8;
}

/* Contenedor del carrusel 3D mejorado */
.carousel-container {
    width: 100%;
    height: 500px;
    margin: 0 auto 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item {
    position: absolute;
    width: 500px;
    height: 400px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-item:hover .carousel-img {
    transform: scale(1.05);
}

/* Controles de navegación mejorados */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    color: #3b82f6;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: #3b82f6;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Indicadores mejorados */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 15px;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator.active {
    background: #3b82f6;
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Botón de acción mejorado */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.cta-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.cta-button:hover:before {
    left: 100%;
}

/* Overlay para modo de visualización */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.overlay.active .overlay-img {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #1e293b;
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
}

.close-btn:hover {
    color: #3b82f6;
    transform: rotate(90deg);
}

/* Efecto de borde luminoso para las imágenes */
.carousel-item::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #6366f1, #3b82f6);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item.active::after {
    opacity: 1;
    animation: borderGlow 2s infinite;
}

@keyframes borderGlow {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* ============================================= */
/* SLIDER DE TRANSFORMACIÓN DIGITAL - CENTRADO */
/* ============================================= */
.slider-section {
    padding: 60px 20px;
    width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

.slider-title {
    margin-top: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #3b3939;
    text-align: center;
    margin-bottom: 40px;
    font-family: "Arial", sans-serif;
    line-height: 1.3;
}

.slider-title span {
    color: #1c6277;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0 15px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    /* Prevenir desbordamiento */
}

.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centrar horizontalmente */
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    align-items: center;
    justify-content: center;
    /* Centrar las cards */
}

.slider-item {
    position: absolute;
    /* Cambiado a absolute para centrado preciso */
    width: 340px;
    height: 480px;
    text-align: center;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
    opacity: 0.7;
    transform: scale(0.9) translateX(0);
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
    background-size: 200%;
    left: 50%;
    margin-left: -170px;
    /* Centrar horizontalmente (mitad del ancho) */
}

.slider-item.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    /* Centrado cuando está activo */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    z-index: 10;
    /* Asegurar que la card activa esté encima */
}

/* Posiciones para las cards no activas */
.slider-item:not(.active) {
    transform: scale(0.8) translateX(400px);
    /* Fuera de vista a la derecha */
    opacity: 0.5;
    z-index: 1;
}

.slider-item:not(.active):nth-child(odd) {
    transform: scale(0.8) translateX(-400px);
    /* Fuera de vista a la izquierda */
}

.slider-item img {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
    display: block;
    object-fit: contain;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 18px;
}

.slider-item h3 {
    margin: 15px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.879);
    text-align: center;
    font-family: "Arial", sans-serif;
}

/* MEJORAS PARA EL TEXTO */
.slider-item p {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin: 13px 0;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    text-align: justify;
    overflow-y: auto;
    max-height: 200px;
}

/* Scroll personalizado para el párrafo */
.slider-item p::-webkit-scrollbar {
    width: 5px;
}

.slider-item p::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.slider-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
}

/* Estilos de botones */
.slider-buttons a {
    display: block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    padding: 0 25px;
    font-size: 16px;
    line-height: 48px;
    border-radius: 8px;
    border: 0;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    transition: all 0.4s ease-out 0s;
    background-size: 200%;
    text-decoration: none;
}

/* Tarjetas azules */
.blue-card {
    background: linear-gradient(to right, #1084b2 0%, #114458 80%, #1084b2 100%);
    color: white;
}

.blue-card .slider-buttons a {
    background: linear-gradient(to right, #1084b2 0%, #114458 80%, #1084b2 100%);
    background-size: 200%;
}

.blue-card .slider-buttons a:hover {
    color: #fff;
    background-position: right center;
}

.blue-card:hover {
    background-position: right center;
    box-shadow: 0 0 20px #114458;
}

/* Tarjetas verdes */
.green-card {
    background: linear-gradient(to right, #779b19 0%, #4e690c 80%, #779b19 100%);
    color: white;
    background-size: 150%;
}

.green-card .slider-buttons a {
    background: linear-gradient(to right, #779b19 0%, #4e690c 80%, #779b19 100%);
    background-size: 200%;
}

.green-card .slider-buttons a:hover {
    color: #fff;
    background-position: right center;
}

.green-card:hover {
    background-position: right center;
    box-shadow: 0 0 20px #779b19;
}

/* Controles del slider */
.slider-control {
    color: #0b3b54;
    background-color: white;
    border: none;
    font-size: 1.7rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slider-control:hover {
    background-color: #0b3b54;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 15px;
    box-sizing: border-box;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    box-sizing: border-box;
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.3);
}

/* ========== ANIMACIONES PARA TRANSICIONES ========== */
@keyframes slideInFromRight {
    from {
        transform: translateX(400px) scale(0.8);
        opacity: 0.5;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-400px) scale(0.8);
        opacity: 0.5;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateX(400px) scale(0.8);
        opacity: 0.5;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateX(-400px) scale(0.8);
        opacity: 0.5;
    }
}

/* ============================================= */
/* SECCIÓN MISIÓN Y VISIÓN */
/* ============================================= */

.cards-section {
    background: #ffffff;
    padding: 80px 10%;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #00bcd4;
    margin: 10px auto 0;
    border-radius: 2px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: 40px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #00bcd4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* ============================================= */
/* SECCIÓN "POR QUÉ ELEGIR SIAMSOFT" */
/* ============================================= */

.choose-siam {
    background: linear-gradient(135deg, #447177, #008ba3);
    color: #fff;
    padding: 80px 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.choose-siam::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.choose-siam::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.choose-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.choose-text {
    flex: 1;
    text-align: left;
    min-width: 300px;
}

.choose-video {
    flex: 1;
    min-width: 300px;
}

.choose-video iframe {
    width: 100%;
    max-width: 500px;
    height: 280px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choose-video iframe:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.choose-siam h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.choose-siam h2 span {
    color: #ffe082;
}

.choose-siam p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Estilos para logos de tecnologías */
.languaje {
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.languaje:hover {
    transform: scale(1.2);
}

.mt-20 {
    margin-top: 20px;
}

.fw-light {
    font-weight: 300;
}

/* ============================================= */
/* SECCIÓN DE PRODUCTOS Y SERVICIOS */
/* ============================================= */
.public-links-section {
    padding: 80px 0;
    text-align: center;
}

.public-links-section h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    font-size: 2.2rem;
    color: var(--secondary);
    font-weight: 700;
}

.public-links-section>.container>p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #555;
    line-height: 1.7;
}

.public-links-section h2:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-content: center;
}

.public-link {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 30px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.public-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.public-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.icon-container {
    margin-bottom: 20px;
}

.public-link .icon-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    padding: 15px;
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.public-link:hover .icon-img {
    transform: scale(1.1);
}

.public-link h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 600;
}

.public-link p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* efecto mas informacion */
.link-hover-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.public-link:hover .link-hover-indicator {
    opacity: 1;
    transform: translateY(0);
}

.link-hover-indicator i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.public-link:hover .link-hover-indicator i {
    transform: translateX(5px);
}


/* ============================================= */
/* SECCIÓN DE VIDEOS EN LÍNEA RECTA */
/* ============================================= */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            text-align: center;
            margin-bottom: 40px;
            padding: 20px;
            background: rgba(168, 168, 168, 0.3);
            border-radius: 15px;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(248, 246, 246, 0.2);
        }
        
        h1 {
            
            font-size: 2.8rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }
        
        .video-card {
            
            background: rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(248, 248, 248, 0.2);
            transition: all 0.3s ease;
            cursor: pointer;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .video-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.15);
        }
        
        .thumbnail {
            position: relative;
            width: 100%;
            height: 200px;
            overflow: hidden;
        }
        
        .thumbnail img {
            width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(233, 233, 233);
    font-size: 24px;
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(241, 241, 241, 0.3);
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff0000;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #000000;
}

.video-info p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    width: 80%;
    height: 80%;
    background: black;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.close-button {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
    z-index: 1001;
}

.close-button:hover {
    color: #ff0000;
}

.video-container {
    width: 100%;
    height: 100%;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================= */
/* SECCIÓN DE TESTIMONIOS */
/* ============================================= */

.testimonios-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    color: #333;
}

.testimonios-title {
    text-align: center;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #212529;
    position: relative;
}

.testimonios-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #0077ff;
    margin: 10px auto;
    border-radius: 2px;
}

.testimonios-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #5a6c7d;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonios-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonio-card {
    background-color: #fff;
    box-shadow: 0 5px 30px rgba(100, 100, 100, 0.16);
    transition: all 0.3s ease-out;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    border-left: 4px solid #0077ff;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
    font-size: 60px;
    color: #0077ff;
}

.rating {
    color: #ffc107;
    margin: 15px 0;
    font-size: 18px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.rating i {
    transition: all 0.3s ease;
}

.rating .star {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    color: #ffc107;
}

.rating .star:hover {
    animation: rotateStar 0.8s ease-in-out;
    color: #ff9e3d;
}

@keyframes rotateStar {
    0% {
        transform: rotate(0) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.4);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.testimonio-text {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
    position: relative;
    z-index: 1;
}

.testimonio-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.testimonio-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 6px solid #0077ff;
    padding: 3px;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.4);
    transition: all 0.4s ease;
    background-color: white;
}

.testimonio-image:hover {
    transform: scale(1.1);
    border-color: #0056b3;
    box-shadow: 0 12px 25px rgba(0, 119, 255, 0.5);
}

.testimonio-author {
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
    font-size: 1.3rem;
    margin-top: 15px;
    color: #2c3e50;
}

.testimonio-position {
    color: #6c757d;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonio-card {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================= */
/* FORMULARIO DE CONTACTO - VERSIÓN MEJORADA */
/* ============================================= */

.section.contact {
    background: linear-gradient(135deg, #005f73 0%, #0a9396 100%);
    color: white;
    padding: 80px 0;
}

.section-title2 {
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section.contact .section-title2 h2 {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 2.2rem;
    position: relative;
}

.section.contact .section-title2 p {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    font-size: 1.1rem;
    max-width: 700px;
}

.section.contact .section-title2 h2::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: white;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
    justify-content: center;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.contact-info>p {
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
    flex-grow: 0;
}

.contact-details {
    margin-bottom: 30px;
    flex-grow: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.contact-text a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-text a:hover {
    color: #94d2bd;
    text-decoration: underline;
}

.contact-text p {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: white;
    color: #005f73;
    transform: translateY(-3px);
}

/* Formulario con diseño mejorado */
.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #0a9396;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 147, 150, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(to right, #FF0000);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 95, 115, 0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 95, 115, 0.4);
    background: linear-gradient(to right, #8de3ad);
}



/* ============================================= */
/* CHATBOT */
/* ============================================= */

#chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #4caf50;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s;
}

#chatbot-icon:hover {
    transform: scale(1.1);
}

#chatbot-icon>img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

#chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    height: 400px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

#chatbot-window.visible {
    display: flex !important;
    animation: chatbot-fadeIn 0.3s ease-out;
}

#chatbot-window .chatbot-header {
    background-color: #4caf50;
    color: #ffffff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

#chatbot-window .chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#chatbot-window .chatbot-messages .message {
    margin: 0;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 14px;
    word-wrap: break-word;
    line-height: 1.4;
}

#chatbot-window .chatbot-messages .user-message {
    background-color: #e2f7cb;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

#chatbot-window .chatbot-messages .bot-message {
    background-color: #f1f1f1;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

#chatbot-window .chatbot-input {
    display: flex;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    gap: 8px;
}

#chatbot-window .chatbot-input>input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dddddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#chatbot-window .chatbot-input>button {
    padding: 8px 16px;
    background-color: #4caf50;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

#chatbot-window .chatbot-input>button:hover {
    background-color: #45a049;
}

@keyframes chatbot-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================= */
/* EFECTO DE PALABRAS CAMBIANTES - HERO SECTION */
/* ============================================= */

.changing-words-container {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    perspective: 1000px;
    margin: 1px;
}

.changing-word {
    position: absolute;
    font-size: 3.5rem;
    font-weight: 800;
    display: flex;
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.changing-word.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.letter {
    display: inline-block;
    transform: translateY(30px) rotateX(-90deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.word-1 {
    color: #ff9a00;
}

.word-2 {
    color: #00c9ff;
}

.word-3 {
    color: #f5515f;
}

.word-4 {
    color: #c471ed;
}

/* ============================================= */
/* RESPONSIVE DESIGN - MOBILE FIRST */
/* ============================================= */

@media screen and (max-width: 768px) {
    /* Ajustes generales */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Navegación */
    .navbar {
        padding: 0.8rem 15px;
        border-radius: 0 0 30px 30px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.4s ease;
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    /* Hero section */
    .main-container {
        height: auto;
        padding: 100px 15px 50px;
    }
    
    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .text-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .text-container {
        font-size: 1.8rem;
    }
    
    .changing-word {
        font-size: 2.2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    /* Barra social */
    .social-bar-container {
        display: none;
    }
    
    /* Carrusel */
    .carousel-section {
        padding: 40px 15px;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-item {
        width: 280px;
        height: 220px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Slider transformación digital */
    .slider-section {
        padding: 40px 15px;
    }
    
    .slider-title {
        font-size: 1.6rem;
    }
    
    .slider {
        height: 400px;
    }
    
    .slider-item {
        width: 280px;
        height: 380px;
        padding: 20px;
        margin-left: -140px;
    }
    
    .slider-item h3 {
        font-size: 1.2rem;
    }
    
    .slider-item p {
        font-size: 12px;
        max-height: 150px;
    }
    
    /* Sección misión/visión */
    .cards-section {
        padding: 40px 20px;
    }
    
    .cards {
        flex-direction: column;
        gap: 25px;
    }
    
    .card {
        min-width: auto;
        max-width: 100%;
    }
    
    /* Por qué elegir Siamsoft */
    .choose-siam {
        padding: 40px 20px;
    }
    
    .choose-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .choose-text, .choose-video {
        min-width: auto;
        text-align: center;
    }
    
    .choose-video iframe {
        height: 200px;
    }
    
    /* Productos y servicios */
    .public-links-section {
        padding: 40px 0;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .public-link {
        padding: 20px;
    }
    
    /* Videos */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Testimonios */
    .testimonios-section {
        padding: 40px 0;
    }
    
    .testimonios-grid {
        flex-direction: column;
    }
    
    .testimonio-card {
        padding: 20px;
    }
    
    .testimonio-image {
        width: 120px;
        height: 120px;
    }
    
    /* Contacto */
    .section.contact {
        padding: 40px 0;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info, .contact-form {
        min-width: auto;
        max-width: 100%;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        min-width: auto;
    }
    
    /* Chatbot */
    #chatbot-icon {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    #chatbot-window {
        width: 90%;
        right: 5%;
        bottom: 70px;
    }
    
    /* Ajustes de texto responsivos */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    /* Ajustes adicionales para pantallas muy pequeñas */
    .text-container {
        font-size: 1.5rem;
    }
    
    .changing-word {
        font-size: 1.8rem;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .slider-title {
        font-size: 1.4rem;
    }
    
    .slider-item {
        width: 250px;
        height: 360px;
        margin-left: -125px;
        padding: 15px;
    }
    
    .btn-info {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .testimonios-title {
        font-size: 1.5rem;
    }
}

/* Animaciones para menú hamburguesa */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mejoras de usabilidad táctil */
@media (hover: none) and (pointer: coarse) {
    .nav-links a:hover::after {
        width: 0;
    }
    
    .social-link:hover {
        width: 50px;
    }
    
    .social-link:hover .social-text {
        opacity: 0;
    }
}

/* Prevenir zoom en inputs en iOS */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}