:root {
    --bg-main: #050505;
    --bg-alt: #111111;
    --card-bg: #111111;
    --card-bg-alt: #181818;
    --accent: #ff2f2f;
    --text-main: #ffffff;
    --text-muted: #dddddd;
    --border-soft: #f5f5f5;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, #202020 0, var(--bg-main) 45%);
    color: var(--text-main);
}


/* Utilidades */

.container {
    width: min(1120px, 100% - 3rem);
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 5rem 0;
}

.section-alt {
    background: radial-gradient(circle at bottom right, #222 0, #050505 55%);
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 72px;
    height: 3px;
    background: var(--accent);
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}

.logo-block {
    align-items: center;
    gap: 0.75rem;
    margin-right: 50px;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-text {
    line-height: 1.1;
}

.logo-text .small {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: block;
}

.logo-text .big {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}


/* NAV */

.site-nav ul {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 0.2rem;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

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


/* Hamburguesa */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.2rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* HERO */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    background: #0f0f0f;
    color: white;
}

.hero-left {
    width: 45%;
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #ccc;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0 0 0;
}

.hero-desc {
    font-size: 1.2rem;
    margin-top: 5px;
    color: #ddd;
    font-weight: 300;
}

.hero-text {
    margin-top: 20px;
    line-height: 1.6;
    color: #ccc;
}

.hero-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: #ff4a4a;
    color: white;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: .3s;
}

.hero-btn:hover {
    background: #ff2424;
}

.hero-right {
    width: 50%;
}

.hero-right img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(120deg, var(--accent), #ff6b6b);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    filter: brightness(1.05);
}


/* Ondas decorativas */

.hero-waves {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 220px;
    background-image: repeating-linear-gradient( 115deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 10px);
    opacity: 0.6;
    filter: blur(1px);
}

.hero-waves-top {
    top: -40px;
}

.hero-waves-bottom {
    bottom: -120px;
}


/* TARJETAS / SECCIONES */

.card {
    background: linear-gradient(135deg, var(--card-bg), var(--card-bg-alt));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.8rem 2rem;
    box-shadow: var(--shadow-soft);
}

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


/* NUESTRA EMPRESA */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.about-image img {
    display: block;
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
}


/* MISIÓN / VISIÓN */

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mv-title {
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0;
    margin-bottom: 1rem;
}


/* VALORES */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: radial-gradient(circle at top, #202020 0, #0a0a0a 60%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.value-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.value-card h3 {
    margin-bottom: 0.5rem;
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.value-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* SERVICIOS */

.services-main-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2.4rem;
}

.service-card {
    background: linear-gradient(160deg, #050505, #161616);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-soft);
}

.service-card h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 0;
    margin-bottom: 0.75rem;
    text-align: center;
}

.services-secondary-title {
    margin-top: 3.6rem;
    margin-bottom: 1.2rem;
}

.services-extra ul {
    padding-left: 1.2rem;
    margin: 0;
    color: var(--text-muted);
}

.services-extra li+li {
    margin-top: 0.45rem;
}

.services-section {
    padding: 60px 5%;
    background: #080808;
    color: #f5f5f5;
}

.services-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* Contenedor con perspectiva 3D */

.service-card {
    position: relative;
    width: 100%;
    height: 260px;
    perspective: 1000px;
}


/* Elemento que rota */

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .7s ease;
}


/* Volteo al pasar el cursor */

.service-card:hover .card-inner,
.service-card.is-flipped .card-inner {
    transform: rotateY(180deg);
}


/* Caras */

.card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
}


/* Frontal: solo título */

.card-front {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #141414;
    border: 1px solid #262626;
    text-align: center;
}

.card-front h3 {
    margin: 0;
    font-size: 1.1rem;
}


/* Trasera: imagen + texto */

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    background: #000;
    border: 1px solid #262626;
}

.card-back-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.card-back-content {
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .6));
    font-size: .9rem;
}

.card-back-content h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.card-back-content p {
    margin: 0;
    color: #e5e5e5;
}


/* Responsive */

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


/* Imagen de fondo */

.service-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform .6s ease;
}


/* Degradado oscuro encima de la imagen */

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .25));
    mix-blend-mode: multiply;
}


/* Contenido */

.service-content {
    position: relative;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 230px;
}

.service-content h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.service-content p {
    margin: 0 0 14px;
    font-size: .9rem;
    color: #d6d6d6;
}

.service-link {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #ff6b6b;
}


/* Hover: efecto “video” */

.service-card:hover .service-bg {
    transform: scale(1.12);
    /* zoom suave */
}

.service-card:hover {
    box-shadow: 0 18px 45px rgba(0, 0, 0, .6);
    transform: translateY(-6px);
}


/* Estado visible cuando entra al viewport (scroll reveal) */

.service-card.visible {
    transform: translateY(0);
    opacity: 1;
}


/* Responsive */

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


/* VENTAJAS */

.ventajas-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.ventajas-grid ul {
    color: var(--text-muted);
    padding-left: 1.2rem;
}

.ventajas-grid li+li {
    margin-top: 0.45rem;
}

.ventajas-image img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
}


/* CONTACTO */

.contacto-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-data a {
    color: var(--accent);
    text-decoration: none;
}

.contact-data a:hover {
    text-decoration: underline;
}

.contact-logo img {
    width: 100%;
    max-width: 260px;
    display: block;
    margin: 0 auto;
}


/* FOOTER */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.5rem 0;
    background: #050505;
}

.footer-inner {
    text-align: center;
    font-size: 0.8rem;
    color: #aaaaaa;
}


/* ANIMACIONES REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* RESPONSIVE */

@media (max-width: 960px) {
    .about-grid,
    .mv-grid,
    .values-grid,
    .services-main-grid,
    .ventajas-grid,
    .contacto-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.5rem 0;
    }
    .site-nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 0.75rem 1.5rem 1.25rem;
        gap: 0.75rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }
    .site-nav ul.open {
        max-height: 420px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-toggle {
        display: block;
    }
    .site-nav {
        position: relative;
    }
    /* animación hamburguesa activa */
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    .section-title {
        font-size: 1.7rem;
    }
    .hero-section {
        padding-top: 4.5rem;
        min-height: 70vh;
    }
    .hero-text {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 2rem, 520px);
    }
    .card {
        padding: 1.4rem 1.3rem;
    }
    .values-grid,
    .services-main-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-overline {
        letter-spacing: 0.22em;
    }
    .hero-section h1 {
        letter-spacing: 0.12em;
    }
}