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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #00c3ff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.logo {
    font-weight: 600;
    font-size: 22px;
    color: #111;
}

.logo {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo .dev {
    background: linear-gradient(45deg, #0097b2, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.menu a {
    text-decoration: none;
    color: #111;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* SLIDER */
.slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: 1s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
}

/* CARDS */
.services {
    padding: 100px;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

#services .card {
    cursor: pointer;
}

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

.card i {
    font-size: 40px;
    color: #0097b2;
    margin-bottom: 15px;
    transition: 0.3s;
}

.card:hover i {
    transform: scale(1.2);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.card p {
    font-size: 14px;
    color: #555;
}

/* PARALLAX */
.parallax {
    height: 400px;
    background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085') center/cover fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* STATS */
.stats {
    display: flex;
    justify-content: space-around;
    background: #111;
    color: white;
    padding: 80px;
}

/* SUCCESS */
.success {
    padding: 100px;
    text-align: center;
}

.success-subtitle {
    margin-top: 10px;
    color: #666;
}

.success-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.success-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

.success-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.success-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.success-card h3 {
    margin-top: 15px;
    font-size: 18px;
}

.success-card p {
    font-size: 14px;
    color: #555;
    padding: 0 15px 20px;
}

/* CONTACT */
.contact {
    padding: 80px;
    text-align: center;
}

.contact-container {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #444;
    line-height: 1.5;
}

input, textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
}

button {
    background: linear-gradient(45deg, #0097b2);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    opacity: 0.8;
}

/* FOOTER */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
}

/* CLOUD */
.section {
    padding: 100px;
    text-align: center;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.section .card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.section .card:hover {
    transform: translateY(-10px);
}

.section .card i {
    font-size: 35px;
    color: #0097b2;
    margin-bottom: 10px;
}

/* CTA */
.cta {
    background: #0a0a0a;
    color: white;
    text-align: center;
    padding: 80px;
}

.cta h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.cta p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.cta a {
    display: inline-block;
    padding: 12px 25px;
    background: white;
    color: #0097b2;
    text-decoration: none;
    border-radius: 10px;
}

/* DOTS */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dots span.active {
    background: #00c3ff;
    transform: scale(1.2);
}

/* HERO BUTTON */
.btn-hero {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #00c3ff;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-hero:hover {
    background: #0097b2;
}

/* RESPONSIVE MENU */
@media (max-width: 768px) {
    .menu {
        position: absolute;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 200px;
        padding: 20px;
        transition: 0.3s;
    }

    .menu.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }
}

/* RESPONSIVE TABLET */

@media (max-width: 1024px) {

    .services,
    .success,
    .section,
    .contact {
        padding: 60px;
    }

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

    .stats {
        flex-wrap: wrap;
        gap: 30px;
        text-align: center;
    }

    .contact-container {
        gap: 20px;
    }
}

/* RESPONSIVE MOBILE */

@media (max-width: 768px) {

    /* NAV */
    .navbar {
        padding: 15px 20px;
    }

    /* GRIDS A 1 COLUMNA */
    .cards,
    .success-cards,
    .grid {
        grid-template-columns: 1fr;
    }

    /* SECCIONES */
    .services,
    .success,
    .section,
    .contact {
        padding: 40px 20px;
    }

    /* STATS EN COLUMNA */
    .stats {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 20px;
    }

    /* CONTACTO EN COLUMNA */
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    /* SLIDER TEXTO MÁS LEGIBLE */
    .content {
        left: 5%;
        right: 5%;
    }

    /* MENÚ */
    .menu {
        width: 220px;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {

    .logo {
        font-size: 18px;
    }

    .content h2 {
        font-size: 20px;
    }

    .content p {
        font-size: 14px;
    }

    .card {
        padding: 25px;
    }

    .success-card img {
        height: 140px;
    }
}
