/* =========================================================
   ICONOS
   ========================================================= */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");


/* =========================================================
   🎨 VARIABLES Y RESET
   ========================================================= */
:root {
    --dark-blue: #0b0f19;
    --darker-blue: #050812;
    --medium-blue: #141a28;
    --light-blue: #1e2639;
    --accent-blue: #00e5ff;
    --white: #e6edf7;
    --light-gray: #9aa4bf;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    /* background-color: #0E1116; */
    font-family: Poppins, sans-serif;
    background-color: var(--darker-blue);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


/* =========================================================
   🧩 ESTILOS GENERALES
   ========================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ---- Textos ---- */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-weight: 800;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ---- Botones ---- */
.btn {
    margin-right: 15px;
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #1e2639;
    background-color: #0b0f19;
    /* border-radius: 4px; */
    transition: var(--transition);
    overflow: hidden;
}

.btn:hover {
    background-color: var(--light-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: var(--accent-blue);
    color: aliceblue;
}

.btn-outline:hover {
    background-color: #2980b9;
}


/* =========================================================
   🧭 HEADER Y NAVBAR
   ========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* background-color: rgba(255, 255, 255, 0.95); */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background: rgba(11, 15, 25, 0.9);
    ;
}

header.scrolled {
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}


/* =========================================================
   🦸‍♂️ HERO SECTION
   ========================================================= */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    max-width: 2000px;
    margin: 0 auto;
}

.hero-content {
    z-index: 2;
    margin: 0 10%;
}

.hero h1 {
    margin-bottom: 40px;
    font-weight: 800;
    font-family: "Arial Black", Gadget, sans-serif;
}

.hero h1 span {
    color: var(--accent-blue);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-subTitle {
    max-width: 500px;
}


.hero-btns .btn {
    margin-right: 15px;
    border-radius: 10px;
}

.hero-image {
    width: 100%;
    height: 80%;
    border: 1px solid #f0f8ff63;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-image: url(../../public/imagen/hero/8ad60ed0-7020-4192-8ea6-058245084fc9.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: hidden;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-image-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-image-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.logo {
    width: auto;
    height: 50px;
}

.footer-column .logo {
    transform: scale(0.8);
}


/* =========================================================
   👤 SOBRE MÍ
   ========================================================= */
.about {
    height: 100vh;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 10px;
    border: 2px solid var(--light-blue);
    transform: rotate(-10deg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.7), rgba(52, 152, 219, 0.7));
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.about-text {
    flex: 1;
}

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

.about-text h2::after {
    left: 0;
    transform: none;
}


/* =========================================================
   💼 SERVICIOS
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--medium-blue);
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid var(--light-blue);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}


/* =========================================================
   🖼️ GALERÍA
   ========================================================= */
/* Estilos del slider */
.gallery-slider {
    position: relative;
    overflow: hidden;
    margin: 40px 80px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide:hover .slide-overlay {
    opacity: 1;
}

.slide-overlay i {
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slide-overlay i:hover {
    transform: scale(1.2);
}

/* Controles del slider */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.slider-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #3498db;
}

/* Indicador de posición */
.slide-counter {
    text-align: center;
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-container {
        height: 400px;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 300px;
    }

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

    .gallery-slider {
        margin: 40px 0;
    }
}



/* =========================================================
   💬 TESTIMONIOS
   ========================================================= */
.testimonials {
    background-color: var(--gray-color);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial {
    background: var(--medium-blue);
    border-radius: 10px;
    border: 1px solid var(--light-blue);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin: 0 20px;
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-subTitle {
    text-align: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

/* ---- Navegación de testimonios ---- */
.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background-color: var(--accent-blue);
}


/* =========================================================
   📞 CONTACTO
   ========================================================= */
.contact {
    background: var(--medium-blue)
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-text h3 {
    margin-bottom: 5px;
}

/* ---- Formulario ---- */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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


/* =========================================================
   ⚓ FOOTER
   ========================================================= */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    margin-right: 30px;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-column h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* ---- Enlaces ---- */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* ---- Redes Sociales ---- */
.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* ---- Copyright ---- */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}


/* =========================================================
   ✨ ANIMACIONES
   ========================================================= */

/* animacion de aparecimiento */
/* ===== Animación base ===== */
.fade-in-element {
    opacity: 0;
    transform: translate(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ===== Estado visible ===== */
.fade-in-element.visible {
    opacity: 1;
    transform: translate(0);
}

/* ===== Direcciones ===== */
.from-left {transform: translateX(-50px);}
.from-right {transform: translateX(50px);}
.from-up {transform: translateY(50px);}
.from-down {transform: translateY(-50px);}
.from-center {transform: scale(0.95);}
.from-center.visible {transform: scale(1);}

/* ===== Duraciones personalizables ===== */
.duration-1s {transition-duration: 1s;}
.duration-1_2s {transition-duration: 1.2s;}
.duration-1_4s {transition-duration: 1.4s;}
.duration-1_6s {transition-duration: 1.6s;}
.duration-1_8s {transition-duration: 1.8s;}
.duration-2s {transition-duration: 2s;}
.duration-2_2s {transition-duration: 2.2s;}
.duration-2_4s {transition-duration: 2.4s;}
.duration-2_6s {transition-duration: 2.6s;}
.duration-2_8s {transition-duration: 2.8s;}
.duration-3s {transition-duration: 3s;}

/* ===== Delays personalizables ===== */
.delay-0s {transition-delay: 0s;}
.delay-0_2s {transition-delay: 0.2s;}
.delay-0_4s {transition-delay: 0.4s;}
.delay-0_6s {transition-delay: 0.6s;}
.delay-0_8s {transition-delay: 0.8s;}
.delay-1s {transition-delay: 1s;}



/* =========================================================
   📱 MEDIA QUERIES (RESPONSIVE)
   ========================================================= */

/* ---- Tablets (≤ 992px) ---- */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }
}

/* ---- Tablets Pequeñas (≤ 768px) ---- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--medium-blue);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

/* ---- Móviles (≤ 576px) ---- */
@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        background-image: url(../../public/imagen/hero/8ad60ed0-7020-4192-8ea6-058245084fc9.webp);
        background-size: cover;
        background-position: center;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.7);
        /* 0.7 = fondo oscuro */
        z-index: 0;
    }

    .hero-content {
        margin: 0%;
    }

    .hero-btns .btn {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .about {
        height: auto;
    }

    .about-image {
        transform: rotate(0deg);
    }
}