:root {
    --primary: #ff0000;
    --dark: #0a0a0a;

    /* SISTEMA DE TEXTO */
    --text-main: #ffffff;
    --text-secondary: #d1d1d1;
    --text-muted: #9a9a9a;
}

/* GENERAL */
body {
    background: var(--dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
    transition: 0.3s;
    padding: 15px 0;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(6px);
}

.navbar-brand {
    font-family: 'Oswald';
    color: #fff;
    font-size: 1.6rem;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: var(--text-secondary) !important;
    margin-left: 15px;
}

.nav-link:hover {
    color: #fff !important;
}

.navbar-toggler {
    border: none;
    color: white;
    font-size: 1.5rem;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('/images/bg-home.jfif') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 70% 50%, rgba(255,0,0,0.15), transparent 40%),
        linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.95));
    z-index: 1;
}

.hero-title {
    font-family: 'Oswald';
    font-size: 5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: auto;
}

/* BOTONES */
.btn-main {
    background: var(--primary);
    border: none;
    padding: 12px 30px;
    color: #fff;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-main:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 1px solid #fff;
    padding: 12px 30px;
}

.btn-outline-light:hover {
    background: #fff;
    color: #000;
}

/* SECCIONES */
.section {
    padding: 50px 0;
}

.section-title {
    font-family: 'Oswald';
    font-size: 2.5rem;
}

.section-title span {
    color: var(--primary);
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 15px auto;
}

/* SERVICIOS */
.servicios-section {
    position: relative;
    background: url('/images/bg-prod.jpeg') center center / cover no-repeat fixed;
    z-index: 1;
}

/* OVERLAY OSCURO */
.servicios-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 0;
}

/* CONTENIDO ARRIBA */
.servicios-section .container {
    position: relative;
    z-index: 2;
}

.subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: auto;
}

.service-card-pro {
    position: relative;
    padding: 40px 30px;
    background: #111;
    border: 1px solid #222;
    overflow: hidden;
    transition: 0.4s;
    height: 100%;
}

.service-card-pro .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,0,0,0.15), transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.service-card-pro:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
}

.service-card-pro:hover .overlay {
    opacity: 1;
}

.service-card-pro h5 {
    font-family: 'Oswald';
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.service-card-pro p {
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* PROCESO */
.proceso-section {
    position: relative;
    background: url('/images/bg-video.avif') center center / cover no-repeat fixed;
    z-index: 1;
}

/* OVERLAY OSCURO */
.proceso-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.70);
    z-index: 0;
}

/* CONTENIDO ARRIBA */
.proceso-section .container {
    position: relative;
    z-index: 2;
}

.process-card {
    background: #111;
    border: 1px solid #222;
    padding: 40px 30px;
    position: relative;
    transition: 0.3s;
    height: 100%;
}

.process-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.process-number {
    font-family: 'Oswald';
    font-size: 3rem;
    color: rgba(255,255,255,0.52);
    position: absolute;
    top: 15px;
    right: 20px;
}

.process-card h5 {
    font-family: 'Oswald';
    margin-bottom: 15px;
}

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

/* FORMULARIO */
.contact-form .form-control {
    background: #0d0d0d;
    border: 1px solid #222;
    color: var(--text-main);
    padding: 14px 15px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
    background: #0d0d0d;
    color: #fff;
}

.contact-form select {
    color: var(--text-secondary);
    cursor: pointer;
}

.contact-form textarea {
    resize: none;
}

.contact-form .btn-main {
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
}

.contact-form .btn-main:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.contact-form .form-control:hover {
    border-color: #444;
}

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

/* FOOTER */
.footer-pro {
    background: #050505;
    padding: 80px 0 30px;
    color: var(--text-secondary);
}

.footer-logo {
    font-family: 'Oswald';
    color: #fff;
}

.footer-logo span {
    color: var(--primary);
}

.footer-pro h5 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    height: 1px;
    background: #222;
    margin: 40px 0 20px;
}

.footer-credit {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-credit:hover {
    color: var(--primary);
}
/* TEXTO */
.footer-text {
    color: var(--text-secondary);
    max-width: 320px;
}

/* PARTNER */
.footer-partner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-partner img {
    height: 28px;
    filter: grayscale(100%) brightness(1.3);
    opacity: 0.8;
    transition: 0.3s;
}

.footer-partner:hover img {
    filter: none;
    opacity: 1;
}

/* TEXTO PARTNER */
.partner-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-partner small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* LINKS */
.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: #fff;
}

/* CONTACTO */
.footer-contact li {
    color: var(--text-secondary);
}

/* FOOTER BOTTOM */
.footer-bottom {
    color: var(--text-muted);
}

/* TAGLINE */
.footer-tagline {
    color: var(--text-secondary);
    max-width: 280px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* PARTNER AJUSTE */
.footer-partner {
    align-items: center;
}

.partner-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-partner small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* BOTÓN VOLVER ARRIBA */
#back_to_top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.7);
  color: #000;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
}

#back_to_top:hover {
  background-color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* HERO VIDEO BACKGROUND */

/* BASE (DESKTOP) */
.hero {
    height: 100vh;
    position: relative;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* llena pantalla */
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

@media (max-width: 768px) {

    .hero {
        height: auto; /* deja que el video defina altura */
    }

    .hero-video {
        position: relative;
        top: auto;
        left: auto;
        transform: none;

        width: 100%;
        height: auto;

        object-fit: contain; /* muestra TODO el video */
    }

    .hero-overlay {
        display: none; /* opcional, mejora visibilidad */
    }

}

/* VIDEO VERTICAL */
.video-vertical-wrapper {
    width: 280px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.video-vertical-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-image {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

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

.wsp-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.wsp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}