:root {
    /* Colores extraídos del logo */
    --purple: #4e2581;
    --blue: #042866;
    --blue-soft: #839bb7;

    --bg-dark: #050712;
    --text-main: #ffffff;
    --text-muted: #c5cedd;
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Montserrat", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.05) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.04) 0, transparent 60%),
        linear-gradient(180deg, var(--purple) 0%, var(--blue) 55%, #020617 100%);
    color: var(--text-main);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    width: 100%;
    padding: 14px 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 999;
    background: linear-gradient(
        90deg,
        rgba(5, 7, 18, 0.9),
        rgba(4, 40, 102, 0.85)
    );
    border-bottom: 1px solid rgba(131, 155, 183, 0.3);
    backdrop-filter: blur(8px);
}

.nav-logo img {
    height: 56px;
    display: block;
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
}

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

.nav-links a {
    text-decoration: none;
    color: #e5ecff;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--blue-soft));
    transition: width 0.25s ease;
}

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

/* HERO */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8vw;
    padding-top: 80px;
    overflow: hidden;

    background-image:
        linear-gradient(120deg, rgba(4, 40, 102, 0.85), rgba(78, 37, 129, 0.85)),
        url("img/principal.png");
    background-size: cover;
    background-position: center;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(5, 7, 18, 0.9) 0%, rgba(5, 7, 18, 0.2) 60%, transparent 100%);
}

/* Contenido principal del hero */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 640px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--blue-soft);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.8rem, 4vw + 1.2rem, 4.2rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--purple), var(--blue-soft));
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    margin-top: 18px;
    max-width: 480px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-cta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* BOTONES */
.btn-primary,
.btn-outline {
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(110deg, var(--purple), var(--blue-soft));
    color: var(--text-main);
    box-shadow: 0 0 25px rgba(4, 40, 102, 0.7);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(131, 155, 183, 0.8);
}

/* CAPAS TIPO VINILO */
.vinyl-layer {
    position: absolute;
    width: 480px;
    height: 260px;
    background: linear-gradient(130deg, var(--purple), var(--blue));
    opacity: 0.5;
    mix-blend-mode: screen;
    filter: blur(1px);
    transform-origin: center;
}

.layer-1 {
    top: -40px;
    right: -140px;
    transform: rotate(-20deg);
}

.layer-2 {
    bottom: -120px;
    right: -60px;
    transform: rotate(-32deg);
    background: linear-gradient(130deg, var(--blue), var(--blue-soft));
    opacity: 0.7;
}

.layer-3 {
    top: 40%;
    left: 55%;
    transform: rotate(-18deg);
    width: 360px;
    height: 180px;
    opacity: 0.35;
}

/* SECCIONES GENERALES */
section {
    padding: 90px 8vw;
    position: relative;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-header p {
    margin-top: 10px;
    color: var(--text-muted);
}

/* SERVICIOS */
.servicios {
    background: rgba(5, 7, 18, 0.96);
    border-top: 1px solid rgba(131, 155, 183, 0.18);
    border-bottom: 1px solid rgba(131, 155, 183, 0.18);
}

/* ✅ Ajuste estético para 5 cards en desktop:
   - Grid de 6 columnas
   - Las 3 primeras ocupan 2+2+2
   - Las 2 últimas ocupan 3+3 (fila completa y “centrada” visualmente) */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px;
}

.servicios-grid .card {
    grid-column: span 2;
}

/* Si hay 5 cards, las 2 últimas se ven más “premium” y equilibradas */
.servicios-grid .card:nth-last-child(2),
.servicios-grid .card:nth-last-child(1) {
    grid-column: span 3;
}

.card {
    background: radial-gradient(circle at 0% 0%, rgba(131, 155, 183, 0.16), transparent 55%),
        #050814;
    border-radius: 18px;
    padding: 26px 24px 28px;
    border: 1px solid rgba(131, 155, 183, 0.25);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(135deg, rgba(78, 37, 129, 0.2), rgba(4, 40, 102, 0.3));
    opacity: 0;
    transform: translateX(-40px) rotate(-10deg);
    transition: opacity 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    border-color: rgba(131, 155, 183, 0.8);
}

.card:hover::before {
    opacity: 1;
}

.card-accent {
    border-left: 4px solid var(--purple);
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-soft);
    margin-bottom: 8px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-muted);
}

/* GALERÍA */
.galeria {
    background: radial-gradient(circle at 100% 0%, rgba(78, 37, 129, 0.3), transparent 60%),
        #050712;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(131, 155, 183, 0.4);
}

.galeria-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galeria-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0, rgba(4, 40, 102, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.galeria-item:hover img {
    transform: scale(1.08);
}

.galeria-item:hover::after {
    opacity: 0.4;
}

/* CONTACTO */
.contacto {
    background: linear-gradient(135deg, rgba(4, 40, 102, 0.9), rgba(78, 37, 129, 0.9));
}

.contacto-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.contacto-text h2 {
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.contacto-text p {
    color: #e9f1ff;
    margin-bottom: 18px;
}

.contacto-list {
    list-style: none;
    color: #dde7ff;
}

.contacto-list li + li {
    margin-top: 4px;
}

/* Teléfono clicable */
.contact-phone {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: 0.25s;
}

.contact-phone:hover {
    color: var(--blue-soft);
    border-color: var(--blue-soft);
}

/* FORMULARIO */
.contacto-form {
    background: rgba(5, 7, 18, 0.96);
    border-radius: 18px;
    padding: 20px 18px 22px;
    border: 1px solid rgba(216, 225, 255, 0.5);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
}

.contacto-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    background: #020617;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    padding: 10px 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: #6b7280;
}

.contacto-form textarea {
    resize: vertical;
    margin-bottom: 12px;
}

.contacto-form .btn-primary {
    width: 100%;
}

/* FOOTER */
.footer {
    background: #020617;
    border-top: 1px solid rgba(15, 23, 42, 1);
    padding: 18px 8vw 22px;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    height: 46px;
    border-radius: 4px;
}

.footer-inner p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .nav-links {
        display: none; /* versión simple, luego se puede hacer menú hamburguesa */
    }

    .hero {
        padding: 0 6vw;
        padding-top: 86px;
    }

    /* En móvil/tablet lo dejamos a 1 columna como ya estaba */
    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicios-grid .card,
    .servicios-grid .card:nth-last-child(2),
    .servicios-grid .card:nth-last-child(1) {
        grid-column: auto;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacto-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    section {
        padding: 70px 6vw;
    }

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

    .hero h1 {
        font-size: 2.4rem;
    }
}

