@charset "utf-8";
/* CSS Document */

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: #2b2d42;
    background-color: #F4E9E4;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== */
/* NAVBAR */
/* ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #F4F4F4;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #15BCB8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #15BCB8;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #15BCB8;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ==================== */
/* HERO SECTION - CORREGIDO PARA MÓVIL */
/* ==================== */
.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    padding-top: 70px;
}

.hero-image {
    width: 100%;
    height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    animation: zoomScale 4s ease-in-out infinite alternate;
}

@keyframes zoomScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@media screen and (max-width: 768px) {
    .hero {
        padding-top: 60px;
        min-height: auto;
    }
    .hero-image {
        height: auto;
        min-height: 300px;
        max-height: 60vh;
    }
    .hero-img {
        object-fit: contain;
        animation: none;
    }
}

@media screen and (max-width: 480px) {
    .hero-image {
        min-height: 250px;
        max-height: 50vh;
    }
}

/* ==================== */
/* LOOP */
/* ==================== */
.full-width-loop {
    width: 100%;
    background: #1E3346;
    color: #ffffff;
    padding: 1.2rem 0;
    overflow: hidden;
    position: relative;
}

.full-width-loop .loop-wrapper {
    width: 100%;
    display: flex;
    overflow: hidden;
}

.full-width-loop .loop-content {
    display: flex;
    animation: loopScroll 20s linear infinite;
}

.full-width-loop .loop-content span {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
    padding: 0 2rem;
    white-space: nowrap;
    position: relative;
}

.full-width-loop .loop-content span:after {
    content: 'Portafolio';
    margin-left: 4rem;
    color: #FFB26B;
}

@keyframes loopScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== */
/* TÍTULO ACERCA DE MÍ */
/* ==================== */
.about-title-section {
    background: #F4E9E4;
    padding: 30px 0 0;
    text-align: center;
}

/* ==================== */
/* CONTENIDO PRINCIPAL (ACERCA DE MÍ) */
/* ==================== */
.main-content {
    background: #F4E9E4;
    padding: 60px 0 80px;
    color: #2b2d42;
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: nowrap;
}

.about-text {
    width: 66.666%;
    order: 1;
    padding-left: 1.5rem;
}

.about-image {
    width: 33.333%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
}

.profile-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid #15BCB8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(21, 188, 184, 0.3);
    border-color: #D80F00;
}

.main-content .hero-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #2b2d42;
    font-weight: 400;
    text-align: left;
}

/* Grid de 3 cards */
.main-content .objectives-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 2rem;
    margin-bottom: 2.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 768px) {
    .main-content .objectives-grid {
        grid-template-columns: 48% 48%;
        gap: 2rem;
    }
}

@media screen and (min-width: 1024px) {
    .main-content .objectives-grid {
        grid-template-columns: 31.333% 31.333% 31.333%;
        gap: 2%;
    }
}

.main-content .objective-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f0ea 100%);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 2px solid #15BCB8;
    transition: all 0.4s ease;
    color: #2b2d42;
    text-align: center;
    box-shadow: 0 4px 15px rgba(21, 188, 184, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content .objective-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #15BCB8, #D80F00);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.main-content .objective-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(21, 188, 184, 0.25);
    border-color: #D80F00;
    background: linear-gradient(135deg, #ffffff 0%, #fce4e1 100%);
}

.main-content .objective-card:hover::before {
    transform: scaleX(1);
}

.main-content .objective-card h4 {
    color: #15BCB8;
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
}

.main-content .objective-card:hover h4 {
    color: #D80F00;
}

.main-content .objective-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: #4a5568;
    font-weight: 400;
}

/* Responsive para móvil */
@media screen and (max-width: 768px) {
    .about-section {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 2rem;
    }
    .about-text {
        width: 100%;
        text-align: center;
        order: 2;
        padding-left: 0;
    }
    .about-image {
        width: 100%;
        justify-content: center;
        order: 1;
    }
    .profile-image {
        max-width: 250px;
        width: 80%;
    }
    .main-content .hero-description {
        text-align: center;
    }
    .main-content .objective-card h4 {
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    .about-image {
        justify-content: center;
    }
    .profile-image {
        max-width: 220px;
    }
}

/* ==================== */
/* SECCIÓN SOFTWARE */
/* ==================== */
.software-section {
    background: #F4E9E4;
    padding: 40px 0 60px;
    text-align: center;
}

.software-section .section-divider {
    margin: 0 auto 30px;
    max-width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #15BCB8, #D80F00, #FFB26B);
    border-radius: 2px;
}

.software-section .section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #15BCB8;
}

.software-description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #2b2d42;
    font-weight: 400;
}

.software-image-container {
    width: 100%;
    overflow: hidden;
    margin-top: 1rem;
}

.software-section .software-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    aspect-ratio: auto !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
}

@media screen and (max-width: 768px) {
    .software-section {
        padding: 30px 0 40px;
    }
    .software-section .section-title {
        font-size: 2rem;
    }
    .software-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .software-section .section-divider {
        max-width: 120px;
    }
}

/* ==================== */
/* SECCIÓN PROYECTOS */
/* ==================== */
.proyectos-section {
    background: #F4E9E4;
    padding: 40px 0 80px;
}

.section-divider {
    height: 3px;
    background: linear-gradient(90deg, #15BCB8, #D80F00, #FFB26B);
    margin: 0 auto 30px;
    max-width: 150px;
    border-radius: 2px;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #15BCB8;
}

.proyectos-description {
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #2b2d42;
    font-weight: 400;
}

/* Grid de 3 proyectos - SIN fr */
.proyectos-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media screen and (min-width: 768px) {
    .proyectos-grid {
        grid-template-columns: 48% 48%;
        gap: 2rem;
    }
}

@media screen and (min-width: 1024px) {
    .proyectos-grid {
        grid-template-columns: 31.333% 31.333% 31.333%;
        gap: 2%;
    }
}

.proyecto-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #15BCB8;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.proyecto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(21, 188, 184, 0.25);
    border-color: #D80F00;
}

.proyecto-image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f8f0ea;
}

.proyecto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.proyecto-card:hover .proyecto-img {
    transform: scale(1.03);
}

.proyecto-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.proyecto-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #15BCB8;
}

.proyecto-text {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn-proyecto {
    background: linear-gradient(135deg, #15BCB8, #0e8f8c);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-proyecto:hover {
    background: linear-gradient(135deg, #D80F00, #b00c00);
    transform: translateY(-2px);
}


/* Título de Carteles */
.carteles-header {
    text-align: center;
    margin: 2rem 0 2rem;
}

.carteles-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #15BCB8;
    margin-bottom: 0.8rem;
}

.carteles-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #15BCB8, #D80F00);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==================== */
/* CARRUSEL DE CARTELES - MÁS PEQUEÑO */
/* ==================== */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 0 50px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 15px;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 0;
}

.carousel-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #15BCB8;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(21, 188, 184, 0.2);
    border-color: #D80F00;
}

.carousel-image {
    width: 100%;
    overflow: hidden;
    background: #f8f0ea;
    aspect-ratio: 3 / 4;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    background: #f8f0ea;
}

.carousel-card:hover .carousel-img {
    transform: scale(1.02);
}

.carousel-info {
    padding: 0.6rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.carousel-card-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #15BCB8;
}

.carousel-card-desc {
    color: #5a6c7d;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
    flex-grow: 1;
}

.btn-carousel {
    background: linear-gradient(135deg, #15BCB8, #0e8f8c);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 5px;
    border: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-carousel:hover {
    background: linear-gradient(135deg, #D80F00, #b00c00);
    transform: translateY(-2px);
}

/* Botones de navegación */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: #15BCB8;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover, .carousel-next:hover {
    background: #D80F00;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Indicadores (puntos) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #93D3AE;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #15BCB8;
    width: 16px;
    border-radius: 3px;
}

.dot:hover {
    background: #D80F00;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .carousel-container {
        max-width: 700px;
        padding: 0 45px;
    }
    
    .carousel-slide {
        flex: 0 0 calc(50% - 8px);
    }
}

@media screen and (max-width: 768px) {
    .carousel-container {
        max-width: 90%;
        padding: 0 35px;
    }
    
    .carousel-slide {
        flex: 0 0 100%;
    }
    
    .carousel-info {
        padding: 0.5rem;
    }
    
    .carousel-card-title {
        font-size: 0.7rem;
    }
    
    .carousel-card-desc {
        font-size: 0.6rem;
    }
    
    .btn-carousel {
        padding: 3px 6px;
        font-size: 0.55rem;
    }
    
    .carousel-prev, .carousel-next {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        padding: 0 25px;
    }
}
/* ==================== */
/* SECCIÓN CONTACTO */
/* ==================== */
.contacto-section {
    background: #F4E9E4;
    padding: 40px 0 80px;
    text-align: center;
}

.contacto-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #15BCB8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contacto-text {
    font-size: 1.2rem;
    color: #2b2d42;
    margin-bottom: 1rem;
}

.contacto-email {
    font-size: 1.3rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: #15BCB8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-email:hover {
    color: #D80F00;
}

/* ==================== */
/* MODAL PDF */
/* ==================== */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #15BCB8, #0e8f8c);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 1.4rem;
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #D80F00;
}

.modal-body {
    padding: 0;
}

#pdfFrame {
    width: 100%;
    height: 500px;
    border: none;
}


/* ==================== */
/* SECCIÓN ANTES Y DESPUÉS - 9 CARDS 3x3 CON DEGRADADO */
/* ==================== */
.before-after-section {
    background: #F4E9E4;
    padding: 40px 0 80px;
}

.before-after-description {
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #2b2d42;
    font-weight: 400;
}

/* Grid de cards - 3x3 responsive */
.before-after-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 2rem;
    margin-top: 1rem;
}

/* Móvil: 1 columna */
@media screen and (min-width: 576px) {
    .before-after-grid {
        grid-template-columns: 48% 48%;
        gap: 1.5rem;
    }
}

/* Tablet: 2 columnas */
@media screen and (min-width: 768px) {
    .before-after-grid {
        grid-template-columns: 48% 48%;
        gap: 2rem;
    }
}

/* Escritorio: 3 columnas */
@media screen and (min-width: 1024px) {
    .before-after-grid {
        grid-template-columns: 31.333% 31.333% 31.333%;
        gap: 2%;
    }
}

/* Card */
.before-after-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #15BCB8;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.before-after-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(21, 188, 184, 0.25);
    border-color: #D80F00;
}

/* Contenedor de imágenes con degradado de fondo */
.before-after-image {
    position: relative;
    width: 100%;
    min-height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e0d8 0%, #d4c8bc 50%, #c0b0a0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efecto de degradado animado al hacer hover */
.before-after-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 188, 184, 0.2) 0%, rgba(216, 15, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.before-after-card:hover .before-after-image::before {
    opacity: 1;
}

/* Estilos para imágenes - se adaptan sin cortarse */
.img-before, .img-after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: opacity 0.8s ease-in-out;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.img-before {
    opacity: 1;
    z-index: 1;
}

.img-after {
    opacity: 0;
    z-index: 2;
}

/* Clase para mostrar la imagen "después" */
.before-after-card.show-after .img-before {
    opacity: 0;
}

.before-after-card.show-after .img-after {
    opacity: 1;
}

/* Información de la card */
.before-after-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.before-after-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #15BCB8;
}

.before-after-text {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.before-after-btn {
    background: linear-gradient(135deg, #15BCB8, #0e8f8c);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.before-after-btn:hover {
    background: linear-gradient(135deg, #D80F00, #b00c00);
    transform: translateY(-2px);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .before-after-section {
        padding: 30px 0 50px;
    }
    
    .before-after-description {
        font-size: 0.95rem;
        padding: 0 15px;
        margin-bottom: 2rem;
    }
    
    .before-after-title {
        font-size: 1.2rem;
    }
    
    .before-after-info {
        padding: 1.2rem;
    }
    
    .before-after-image {
        min-height: 220px;
    }
    
    .img-before, .img-after {
        max-width: 92%;
        max-height: 92%;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    .before-after-image {
        min-height: 260px;
    }
}

@media screen and (min-width: 1024px) {
    .before-after-image {
        min-height: 320px;
    }
}

/* ==================== */
/* SECCIÓN VIDEO DESTACADO */
/* ==================== */
.video-section {
    background: #F4E9E4;
    padding: 40px 0 80px;
    width: 100%;
    clear: both;
    position: relative;
    z-index: 1;
}

.video-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-section .section-divider {
    margin: 0 auto 30px;
    max-width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #15BCB8, #D80F00, #FFB26B);
    border-radius: 2px;
}

.video-section .section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #15BCB8;
}

.video-container-wrapper {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

/* Video wrapper - ocupa 2/3 */
.video-wrapper {
    flex: 2;
    min-width: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #000000;
    aspect-ratio: 16 / 9;
}

.featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Controles del video */
.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 40px;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.video-controls {
    opacity: 0.6;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

.video-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.video-btn:hover {
    background: #15BCB8;
    transform: scale(1.05);
}

.video-btn span {
    font-style: normal;
    line-height: 1;
}

/* Texto del video - ocupa 1/3 */
.video-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #15BCB8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #15BCB8;
    margin-bottom: 1rem;
}

.video-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #2b2d42;
    margin-bottom: 1rem;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.video-tag {
    background: linear-gradient(135deg, #15BCB8, #0e8f8c);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}

/* Pantalla completa */
.featured-video:fullscreen {
    object-fit: contain;
    background: #000000;
}

.featured-video:-webkit-full-screen {
    object-fit: contain;
    background: #000000;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .video-section {
        padding: 30px 0 50px;
    }
    
    .video-section .section-title {
        font-size: 2rem;
    }
    
    .video-container-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .video-wrapper {
        flex: auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    
    .video-text {
        flex: auto;
        padding: 1.5rem;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-description {
        font-size: 0.95rem;
    }
    
    .video-controls {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .video-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
    .video-container-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .video-wrapper {
        flex: auto;
        width: 100%;
    }
    
    .video-text {
        flex: auto;
    }
}

/* ==================== */
/* CARRUSEL DE VIDEOS - ESTILO FOCUS */
/* ==================== */
.videos-carousel-section {
    background: #F4E9E4;
    padding: 40px 0 80px;
    overflow: hidden;
}

.videos-carousel-description {
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #2b2d42;
    font-weight: 400;
}

/* Contenedor principal del carrusel */
.videos-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.videos-carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.videos-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
    padding: 20px 0;
}

/* Cada item del carrusel */
.video-carousel-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    transition: all 0.4s ease;
}

/* Card del video */
.video-carousel-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #15BCB8;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Efecto de desenfoque para videos laterales */
.video-carousel-item:not(.active) .video-carousel-card {
    opacity: 0.5;
    filter: blur(3px);
    transform: scale(0.92);
}

.video-carousel-item.active .video-carousel-card {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    box-shadow: 0 15px 35px rgba(21, 188, 184, 0.3);
    border-color: #D80F00;
}

/* Contenedor del video */
.video-carousel-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Botón de expandir */
.video-expand-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.video-carousel-player:hover .video-expand-btn {
    opacity: 1;
}

.video-expand-btn:hover {
    background: #15BCB8;
    transform: scale(1.1);
}

/* Información del video */
.video-carousel-info {
    padding: 1rem 1.2rem 1.2rem;
    text-align: center;
}

.video-carousel-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #15BCB8;
    margin-bottom: 0.5rem;
}

.video-carousel-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #5a6c7d;
    margin: 0;
}

/* Botones de navegación */
.videos-carousel-prev, .videos-carousel-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: #15BCB8;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.videos-carousel-prev:hover, .videos-carousel-next:hover {
    background: #D80F00;
    transform: translateY(-50%) scale(1.1);
}

.videos-carousel-prev {
    left: 0;
}

.videos-carousel-next {
    right: 0;
}

/* Indicadores (puntos) */
.videos-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.video-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #93D3AE;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-dot.active {
    background: #15BCB8;
    width: 24px;
    border-radius: 5px;
}

.video-dot:hover {
    background: #D80F00;
}

/* ==================== */
/* MODAL DE VIDEO EXPANDIDO */
/* ==================== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    background-color: #000000;
    margin: 2% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #15BCB8, #0e8f8c);
    color: white;
}

.video-modal-header h3 {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
}

.video-modal-close {
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.video-modal-close:hover {
    color: #D80F00;
}

.video-modal-body {
    padding: 0;
    background: #000000;
}

.expanded-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .video-carousel-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .videos-carousel-container {
        padding: 0 50px;
    }
}

@media screen and (max-width: 768px) {
    .videos-carousel-section {
        padding: 30px 0 50px;
    }
    
    .videos-carousel-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .videos-carousel-container {
        padding: 0 40px;
    }
    
    .video-carousel-item {
        flex: 0 0 100%;
    }
    
    .video-carousel-item:not(.active) .video-carousel-card {
        opacity: 0.3;
        filter: blur(2px);
        transform: scale(0.95);
    }
    
    .videos-carousel-prev, .videos-carousel-next {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .video-carousel-info {
        padding: 0.8rem;
    }
    
    .video-carousel-title {
        font-size: 0.9rem;
    }
    
    .video-carousel-desc {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .videos-carousel-container {
        padding: 0 30px;
    }
    
    .video-expand-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* ==================== */
/* SECCIÓN CONTACTO (ICONOS) */
/* ==================== */
.contacto-section {
    background: #F4E9E4;
    padding: 40px 0 80px;
    text-align: center;
}

.contacto-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid #15BCB8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contacto-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #15BCB8, #0e8f8c);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.contacto-icon i {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.contacto-icon span {
    font-size: 1rem;
}

.contacto-icon:hover {
    background: linear-gradient(135deg, #D80F00, #b00c00);
    transform: translateX(5px);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contacto-section {
        padding: 30px 0 50px;
    }
    
    .contacto-content {
        padding: 1.5rem;
        margin: 0 20px;
    }
    
    .contacto-icon {
        padding: 0.6rem 1rem;
    }
    
    .contacto-icon i {
        font-size: 1.1rem;
        width: 25px;
    }
    
    .contacto-icon span {
        font-size: 0.9rem;
    }
}

/* ==================== */
/* RESPONSIVE DESIGN GENERAL */
/* ==================== */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        background: #ffffff;
        width: 280px;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: all 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 2rem;
        z-index: 999;
    }
    .nav-menu.active {
        right: 0;
    }
    
    /* Color de los enlaces del menú móvil */
    .nav-menu .nav-link {
        color: #2b2d42;
    }
    
    .nav-menu .nav-link:hover {
        color: #15BCB8;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background: #D80F00;
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background: #D80F00;
    }
    .section-title {
        font-size: 2rem;
    }
    .proyectos-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .proyecto-title {
        font-size: 1.2rem;
    }
    .carteles-title {
        font-size: 1.6rem;
    }
    .contacto-content {
        margin: 0 20px;
        padding: 1.5rem;
    }
    .contacto-email {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        min-height: auto;
        padding-top: 60px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .proyecto-info {
        padding: 1rem;
    }
}