/* =========================
   VARIABLES
========================= */
:root {
    --ink-black: #0d1b2a;
    --prussian-blue: #1b263b;
    --dusk-blue: #415a77;
    --dusty-denim: #778da9;
    --alabaster-grey: #e0e1dd;
    --ice-blue: #d0e1f9;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(1000px 500px at 20% -10%, rgba(119, 141, 169, .15), transparent 40%),
        linear-gradient(135deg, var(--ink-black), var(--prussian-blue), var(--dusk-blue));
    color: var(--alabaster-grey);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================
   PARTICLES
========================= */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dusty-denim);
    opacity: .25;
    animation: float linear infinite;
}

@keyframes float {
    from {
        transform: translateY(110vh)
    }

    to {
        transform: translateY(-110vh)
    }
}

/* =========================
   HEADER
========================= */
header {
    position: relative;
    z-index: 5;
    padding: 2rem 4rem;
    display: flex;
    justify-content: center;
    /* Center content */
    align-items: center;
    border-bottom: 1px solid rgba(208, 225, 249, 0.1);
    background: linear-gradient(to bottom, rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0));
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 5rem;
    /* Much larger */
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, var(--dusty-denim));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* .header-img removed */

.header-decoration {
    position: absolute;
    right: 2rem;
}

.header-decoration span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dusk-blue);
    display: inline-block;
    margin-left: 8px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: .4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    /* Much smaller */
    font-weight: 600;
    line-height: 1.3;
}

.hero p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--dusty-denim);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   CAROUSEL
========================= */
.carousel-section {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 0;
    /* JS handles centering */
    transition: transform .55s cubic-bezier(.25, .46, .45, .94);
    will-change: transform;
    touch-action: pan-y;
    /* Allow vertical scroll, handle horizontal swipe in JS */
}

/* =========================
   CARD
========================= */
.card {
    flex: 0 0 500px;
    height: 350px;
    background:
        linear-gradient(135deg, rgba(208, 225, 249, 0.5), rgba(208, 225, 249, 0.6)),
        /* Ice blue with transparency */
        url('img.png') no-repeat center center / 50%;
    /* Image as background */
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--prussian-blue);
    /* Dark text for contrast */
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Lighter border */
    transition:
        transform .55s cubic-bezier(.25, .46, .45, .94),
        opacity .55s ease,
        box-shadow .45s ease,
        border-color .45s ease;

    /* Default state: slightly smaller and faded */
    transform: scale(0.85);
    opacity: 0.5;
    z-index: 1;
}

.card:hover {
    border-color: var(--ice-blue);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, .6),
        0 0 80px rgba(65, 90, 119, .25);
}

.card.active {
    /* Active state: full size and fully opaque */
    transform: scale(1.1);
    opacity: 1;
    z-index: 10;
    opacity: 1;
    z-index: 10;
    border-color: var(--ice-blue);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, .7),
        0 0 100px rgba(119, 141, 169, .35),
        0 0 30px rgba(208, 225, 249, 0.1);
}

/* Glow */
.card-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle,
            rgba(119, 141, 169, .15),
            transparent 60%);
    opacity: 0;
    transition: opacity .4s ease;
}

.card:hover .card-glow {
    opacity: 1;
}

/* =========================
   CARD CONTENT
========================= */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--dusk-blue), var(--prussian-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--alabaster-grey);
}

.card-content {
    margin-top: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.card-description {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--prussian-blue);
    /* Darker blue for contrast */
    font-weight: 500;
}

.card-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(27, 38, 59, .15);
    /* Darker for light card */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s ease;
}

.card:hover .card-arrow {
    background: var(--dusk-blue);
    transform: translateX(6px);
}

.card:hover .card-arrow svg {
    fill: #fff;
    /* White icon on dark hover bg */
}

.card-arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--prussian-blue);
    /* Dark icon */
}

/* =========================
   NAVIGATION
========================= */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--prussian-blue), var(--ink-black));
    border: 1px solid rgba(119, 141, 169, .35);
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    transition: .3s ease;
}

.nav-btn:hover {
    transform: scale(1.15);
    border-color: var(--ice-blue);
    box-shadow: 0 0 15px rgba(208, 225, 249, 0.2);
}

.carousel-indicators {
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(119, 141, 169, .35);
    transition: .3s ease;
}

.indicator.active {
    background: var(--ice-blue);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(208, 225, 249, 0.4);
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 3rem 2rem;
    font-size: .9rem;
    color: var(--dusty-denim);
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-img {
    max-width: 150px;
    /* Made smaller */
    height: auto;
    opacity: 0.8;
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 8px var(--ice-blue));
}

footer a {
    color: var(--alabaster-grey);
    text-decoration: none;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablets */
@media(max-width:1024px) {
    header {
        padding: 1.5rem 2rem
    }

    .card {
        flex: 0 0 60vw;
        height: 300px
    }

    .carousel-track {
        padding: 0;
    }
}

/* Móviles */
@media(max-width:768px) {
    .hero {
        padding: 3rem 1.5rem 1.5rem
    }

    .hero p {
        font-size: 1rem
    }

    .card {
        flex: 0 0 75vw;
        height: 320px;
        padding: 1.5rem;
    }

    .carousel-track {
        gap: 1.5rem;
        padding: 0;
    }

    .nav-btn {
        width: 48px;
        height: 48px;
    }
}

/* Móviles pequeños */
@media(max-width:480px) {
    .logo {
        font-size: 1.4rem
    }

    .card {
        flex: 0 0 75vw;
        height: 280px;
    }

    .carousel-track {
        padding: 0;
    }
}