/* ====================================
   HERO ESPECÍFICO PARA PROYECTO 2
   ==================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    overflow: hidden;
    padding-top: 80px;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 2rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 30px;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.hero-logo {
    width: 140px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(100, 255, 218, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(100, 255, 218, 0.5);
}

.cta-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.cta-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

/* ====================================
   DESCRIPCIÓN DEL PROYECTO
   ==================================== */
.project-description {
    padding: 8rem 5%;
    background: var(--color-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-label {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--color-text);
    line-height: 1.8;
}

.description-container {
    max-width: 1400px;
    margin: 0 auto;
}

.description-content {
    margin-bottom: 4rem;
}

.description-intro {
    font-size: 1.3rem;
    color: var(--color-heading);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.description-content p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.detail-card {
    background: rgba(10, 25, 47, 0.5);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-blue));
    transform: scaleX(0);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 50px rgba(100, 255, 218, 0.2);
}

.detail-card:hover::before {
    transform: scaleX(1);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.3));
}

.detail-card h3 {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.detail-card p {
    font-size: 1.1rem;
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.5;
}

/* Características del Proyecto */
.project-features {
    background: rgba(10, 25, 47, 0.5);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.features-title {
    font-size: 2rem;
    color: var(--color-heading);
    margin-bottom: 2.5rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--color-accent);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(5px);
}

.feature-item .feature-icon {
    font-size: 2rem;
    min-width: 40px;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
}

.feature-content h4 {
    font-size: 1.2rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* ====================================
   SECCIÓN DE VIDEO
   ==================================== */
.project-video {
    padding: 8rem 5%;
    background: var(--color-primary);
}

.video-container {
    max-width: 1400px;
    margin: 0 auto;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 700px;
    border-radius: 16px;
    border: 2px solid rgba(100, 255, 218, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-placeholder {
    width: 100%;
    height: 700px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(0, 212, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 2px solid var(--color-accent);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 20px 60px rgba(100, 255, 218, 0.2);
    transition: var(--transition);
}

.video-placeholder:hover {
    border-color: var(--color-blue);
    box-shadow: 0 25px 70px rgba(100, 255, 218, 0.3);
}

.video-icon {
    font-size: 5rem;
    filter: drop-shadow(0 0 30px rgba(100, 255, 218, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.video-text {
    font-size: 2rem;
    color: var(--color-heading);
    font-weight: 700;
    margin: 0;
}

.video-subtext {
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 0;
    opacity: 0.8;
}

/* ====================================
   GALERÍA CON CARRUSEL
   ==================================== */
.project-gallery {
    padding: 8rem 5%;
    background: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-label {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--color-text);
    line-height: 1.8;
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Carrusel Principal */
.carousel-main {
    position: relative;
    background: rgba(10, 25, 47, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    height: 600px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
}

/* Imagen del Slide */
.slide-image {
    flex: 1.2;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px);
}

.slide-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.carousel-slide.active .slide-image img {
    animation: zoomIn 0.8s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.slide-image:hover img {
    transform: scale(1.05);
}

/* Contenido del Slide */
.slide-content {
    flex: 1;
    padding: 2rem;
}

.slide-number {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(100, 255, 218, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-accent);
}

.carousel-slide.active .slide-number {
    animation: slideInLeft 0.6s ease 0.2s both;
}

.slide-content h3 {
    font-size: 2.5rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.carousel-slide.active .slide-content h3 {
    animation: slideInLeft 0.6s ease 0.3s both;
}

.slide-content p {
    font-size: 1.2rem;
    color: var(--color-text);
    line-height: 1.8;
}

.carousel-slide.active .slide-content p {
    animation: slideInLeft 0.6s ease 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Botones de Navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--color-accent);
}

.carousel-btn:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.5);
}

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

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Indicadores con Miniaturas */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.indicator {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: rgba(10, 25, 47, 0.5);
    backdrop-filter: blur(10px);
}

.indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.6);
    z-index: 1;
    transition: all 0.3s ease;
}

.indicator:hover::before {
    background: rgba(10, 25, 47, 0.3);
}

.indicator.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    transform: scale(1.05);
}

.indicator.active::before {
    background: transparent;
}

.indicator img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.indicator:hover img {
    transform: scale(1.1);
}

/* Efectos de Brillo */
.carousel-main::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-blue), var(--color-accent));
    background-size: 200% 200%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    animation: gradientShift 3s ease infinite;
    transition: opacity 0.3s ease;
}

.carousel-main:hover::before {
    opacity: 0.3;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
    .carousel-slide {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .slide-image {
        width: 100%;
    }

    .slide-content {
        padding: 1rem;
        text-align: center;
    }

    .slide-content h3 {
        font-size: 2rem;
    }

    .carousel-track-container {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .carousel-indicators {
        gap: 1rem;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1rem;
    }

    .indicator {
        width: 100px;
        height: 70px;
        flex-shrink: 0;
    }

    .carousel-track-container {
        height: 650px;
    }

    .slide-content h3 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-gallery {
        padding: 4rem 5%;
    }

    .carousel-slide {
        padding: 1.5rem;
    }

    .carousel-track-container {
        height: 600px;
    }

    .slide-content h3 {
        font-size: 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

/* ====================================
   ABOUT SECTION
   ==================================== */
.about-section {
    padding: 8rem 5%;
    background: var(--color-primary);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0 20px 50px rgba(100, 255, 218, 0.2));
    animation: float 4s ease-in-out infinite;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.about-features .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
}

.about-features .feature-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

/* ====================================
   CONTACT SECTION
   ==================================== */
.contact-section {
    padding: 8rem 5%;
    background: var(--color-secondary);
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    color: var(--color-accent);
}

.contact-form-wrapper {
    background: rgba(10, 25, 47, 0.5);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group label span {
    color: var(--color-accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    color: var(--color-heading);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.4);
}

/* ====================================
   FOOTER
   ==================================== */
footer {
    padding: 3rem 5%;
    background: var(--color-primary);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
}

footer p {
    color: var(--color-text);
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-details {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .video-container iframe,
    .video-container video,
    .video-placeholder {
        height: 450px;
    }

    .gallery-image {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .project-details {
        grid-template-columns: 1fr;
    }

    .video-container iframe,
    .video-container video,
    .video-placeholder {
        height: 350px;
    }

    .gallery-image {
        height: 250px;
    }
}