* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #16222A 0%, #3A6073 100%);
    color: #f7fafc; 
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 40, 51, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: #0c0f0d;
    box-shadow: 0 4px 30px rgba(0, 255, 153, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ff99;
    cursor: pointer;

}
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #f7fafc;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #00ff99;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: #00ff99;
}

.nav-link.active::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #00ff99;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #0f1419 0%, #1e2833 50%, #2a3f54 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 153, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: #000000;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.8em;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 500;
    font-family: sans-serif;
    color:rgb(127, 233, 215)
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.badge {
    display: inline-block;
    background: rgba(0, 255, 153, 0.2); 
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    color: #00ff99; 
    border: 1px solid #00ff99;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(0, 255, 153, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 153, 0.3);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, #00ff99 0%, #00b366 100%);
    color: #1e2833;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 153, 0.5);
}

.btn-hero-outline {
    display: inline-block;
    background: #010e05;
    color: #00ff99;
    padding: 15px 40px;
    border: 2px solid #00ff99;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(0, 0, 0, 0.905);
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #00ff99;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 2em;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== ABOUT SECTION (DOS TARJETAS) ===== */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.about-card {
    background: #0c0f0d;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 255, 153, 0.3);
    
}

.about-card h2 {
    color: #00ff99;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #00ff99;
}

.about-card p {
    margin-bottom: 15px;
    color: #f7fafc;
    line-height: 1.8;
}

/* ===== SECTIONS ===== */
.section {
    margin: 80px 0;
    text-align: center;
}

.section-text-align-left {
    text-align: left !important;
}

.section-text-align-left h2 {
    text-align: left;
}

.section-title {
    color: #00ff99;
    font-size: 2.5em;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #00ff99;
    display: inline-block;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    background: #0c0f0d; 
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
    background: none; 
    padding: 0;
    border-radius: 0;
    color: inherit;
    text-align: center;
    height: 100%; 
}

.card-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 153, 0.4);
    background: #050d0b;
}

.card h3 {
    color: #00ff99;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #00ff99;
}

.card p {
    color: #a0aec0;
}

/* ===== CODE EXAMPLE ===== */
.code-example {
    background: #111827; 
    color: #e2e8f0;
    padding: 25px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
    border: 1px solid #00ff99;
}

.code-example code {
    color: #00ff99;
}

/* ===== BUTTONS ===== */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #00ff99 0%, #00b366 100%);
    color: #1e2833; 
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 255, 153, 0.5);
}

/* ===== FEATURES LIST ===== */
.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 20px;
    margin: 15px 0;
    background: #040807; 
    border-left: 4px solid #0ec27a;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #f7fafc; 
}

.features-list li:hover {
    background: #0a3d2e; 
    transform: translateX(10px);
    border-left-width: 5px;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00ff99;
    color: #1e2833;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 255, 153, 0.4);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 153, 0.6);
}

/* ===== CARRUSEL DE PROYECTOS ===== */
.carousel-container {
    position: relative;
    max-width: 950px; /* Punto medio entre 1000px y 900px */
    margin: 45px auto; /* Punto medio entre 50px y 40px */
    padding: 0 60px;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #0c0f0d;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
    animation: slideIn 0.6s ease-out;
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease, filter 0.3s ease;
    background: #000; /* Fondo negro por si acaso */
}

/* Asegurar que las imágenes llenen todo el espacio */
.carousel-image-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    background: #0a0f0d; /* Color más oscuro y sutil */
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover en el contenedor completo */
.carousel-image-container:hover .carousel-image {
    transform: scale(1.05) !important; /* !important para forzar sobre JS */
    filter: brightness(1.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.carousel-content {
    padding: 35px; /* Punto medio entre 40px y 30px */
    text-align: center;
    min-height: 315px; /* Punto medio entre 350px y 280px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}




.carousel-title {
    font-size: 1.8em; /* Punto medio entre 2em y 1.6em */
    color: #00ff99;
    margin-bottom: 18px; /* Punto medio entre 20px y 15px */
    font-weight: bold;
}



.carousel-description {
    color: #a0aec0;
    font-size: 1.05em; /* Punto medio entre 1.1em y 1em */
    line-height: 1.7; /* Punto medio entre 1.8 y 1.6 */
    margin-bottom: 25px; /* Punto medio entre 30px y 20px */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 6.8em; /* 4 líneas × 1.7 line-height */
}




.carousel-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00ff99 0%, #00b366 100%);
    color: #1e2833;
    padding: 12px 30px; /* Reducido de 15px 40px */
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em; /* Reducido de 1.1em */
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 153, 0.3);
    width: auto; /* Se ajusta al contenido */
    max-width: fit-content;
    margin: 0 auto;
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 153, 0.5);
}


.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 153, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid #00ff99;
    color: #00ff99;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 255, 153, 0.3);
}

.carousel-control:hover {
    background: rgba(0, 255, 153, 0.35);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 255, 153, 0.6);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.carousel-control span {
    display: block;
    line-height: 1;
}


/* Indicadores (puntos) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 255, 153, 0.3);
    border: 2px solid #00ff99;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(0, 255, 153, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: #00ff99;
    width: 30px;
    border-radius: 10px;
}

/* Barra de progreso */
.carousel-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 153, 0.2);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff99, #00b366);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.5);
}


/* Animación de aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== SECCIÓN EJEMPLOS ===== */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.example-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 20px;
    background: linear-gradient(145deg, #0f1419, #1a1f26);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 255, 153, 0.1);
}

.example-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 255, 153, 0.3);
    border-color: rgba(0, 255, 153, 0.4);
}

/* Contenedor de imagen con efecto */
.example-image-container {
    position: relative;
    height: 200px;
    margin: 20px 20px 0 20px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #00ff99 0%, #00b366 100%);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 255, 153, 0.4);
    transition: all 0.3s ease;
}

.example-image-container:hover {
    box-shadow: 0 12px 35px rgba(0, 255, 153, 0.6);
    transform: scale(1.02);
}

.example-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.example-image-container:hover .example-image {
    transform: scale(1.1);
}

/* Overlay con icono de zoom */
.example-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.example-image-container:hover .example-image-overlay {
    opacity: 1;
}

.example-zoom-icon {
    font-size: 3em;
    color: #00ff99;
    text-shadow: 0 0 20px rgba(0, 255, 153, 0.8);
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Cuerpo de la tarjeta */
.example-body {
    padding: 25px;
    flex-grow: 1;
}

.example-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 255, 153, 0.15);
    color: #00ff99;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 255, 153, 0.3);
}

.example-title {
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 700;
    color: #00ff99;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
}

.example-description {
    font-size: 1em;
    line-height: 1.6;
    color: #a0aec0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer con botón */
.example-footer {
    padding: 0 25px 25px 25px;
}

.example-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00ff99 0%, #00b366 100%);
    color: #0f1419;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 153, 0.3);
}

.example-btn:hover {
    background: linear-gradient(135deg, #00b366 0%, #00ff99 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 153, 0.5);
}

/* ===== MODAL PARA IMÁGENES ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 20px 80px rgba(0, 255, 153, 0.3);
    border: 2px solid rgba(0, 255, 153, 0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(0, 255, 153, 0.2);
    border: 2px solid #00ff99;
    color: #00ff99;
    font-size: 2.5em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(0, 255, 153, 0.4);
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .example-image-container {
        height: 180px;
    }

    .example-title {
        font-size: 1.2em;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal-close {
        top: -45px;
        width: 45px;
        height: 45px;
        font-size: 2em;
    }
}


/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px;
    color: #a0aec0; 
    margin-top: 60px;
    border-top: 1px solid rgba(0, 255, 153, 0.2);
}

footer a {
    color: #00ff99;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #00ff99;
}

/* ===== ANIMACIONES ===== */
@keyframes neonGlow {
    from {
        text-shadow: 0 0 5px #00ff99, 
                     0 0 10px #00ff99,
                     0 0 15px #00ff99,
                     0 0 25px rgba(0, 255, 153, 0.8);
    }
    to {
        text-shadow: 0 0 10px #00ff99, 
                     0 0 20px #00ff99,
                     0 0 40px #00ff99,
                     0 0 60px rgba(0, 255, 153, 1),
                     0 0 80px rgba(0, 255, 153, 0.8);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Clase para animación de scroll */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(30, 40, 51, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: 1.8em;
    }

    .cta-buttons {
        flex-direction: column;
    }
}
   @media (max-width: 768px) {
    .carousel-container {
        padding: 0 20px;
        margin: 35px auto;
    }

    .carousel-image-container {
        height: 300px; /* Altura fija móvil */
    }

    .carousel-content {
        padding: 22px 15px;
        min-height: 270px;
    }

    .carousel-title {
        font-size: 1.4em;
    }

    .carousel-description {
        font-size: 0.95em;
        line-height: 1.55;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        min-height: 6.2em;
    }

    .carousel-control {
        width: 45px;
        height: 45px;
        font-size: 1.8em;
    }

    .carousel-btn {
        padding: 10px 25px;
        font-size: 0.9em;
    }
}

