/* ====== CSS VARIABLES ====== */
:root {
    --bg-main: #1a1c20;
    --bg-darker: #111215;
    --bg-card: #2a2d34;
    --primary-orange: #ff5500;
    --primary-orange-hover: #cc4400;
    --primary-orange-glow: rgba(255, 85, 0, 0.4);
    --text-light: #ffffff;
    --text-muted: #b0b3b8;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* ====== TYPOGRAPHY ====== */
h1,
h2,
h3,
h4,
h5,
.logo {
    font-family: var(--font-heading);
    color: var(--text-light);
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 span {
    color: var(--primary-orange);
    text-shadow: 0 0 20px var(--primary-orange-glow);
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-orange);
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

ul.bullet-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

ul.bullet-list li {
    color: var(--text-muted);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

ul.bullet-list li::before {
    content: '•';
    color: var(--primary-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-orange-glow);
}

.btn-primary:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-orange-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition-fast);
    background: rgba(26, 28, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-top-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.nav-top-info strong {
    color: var(--primary-orange);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-family: 'EurostileExtendedBlack', sans-serif;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;

    .texto-estilo {
        font-variant: small-caps;
        font-weight: bold;
        text-transform: lowercase;
    }

    .texto-estilo::first-letter {
        font-size: 1.2em;
    }
}

.logo-slogan {
    font-family: var(--font-body);
    color: var(--primary-orange);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links li a:hover {
    color: var(--primary-orange);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition-fast);
}

/* ====== HERO SLIDER ====== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 100px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 28, 32, 0.9) 0%, rgba(26, 28, 32, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

/* ====== SECTIONS ====== */
.section-diagonal {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.bg-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.section-diagonal.cut-right-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    transform: skewX(-15deg) translateX(-10%);
    z-index: -1;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.9);
}

/* Overlay oscuro final (Capa superior de fondo) */
.section-diagonal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -2; 
}

.section-diagonal .container {
    position: relative;
    z-index: 10;
}

/* Cards & Layouts */
.services-grid,
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (min-width: 992px) {
    .services-grid .card:last-child {
        grid-column: 2;
    }
}

.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-orange);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

/* Solutions Details */
.solution-detail {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--bg-darker);
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
}

.price-tag {
    display: inline-block;
    background: var(--primary-orange);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 10px;
}

/* ====== CONTACT ====== */
.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form-wrapper {
    flex: 1.5;
    min-width: 300px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.input-wrap label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-body);
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* ====== FOOTER ====== */
footer {
    background: #0d0f11;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    color: var(--primary-orange);
}

.payment-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.payment-icons img {
    height: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .nav-top-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 100px;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: var(--transition-fast);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}/* ====== SERVICES IMAGE GRID ====== */
.services-image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.service-img-card {
    flex: 1 1 300px;
    max-width: 350px;
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.service-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-img-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 85, 0, 0.2);
}

.service-img-card:hover img {
    transform: scale(1.05);
}

.service-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,28,32,0.95) 0%, rgba(26,28,32,0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.service-img-overlay h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
}

/* ====== MODAL ====== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
}
 
.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-btn:hover {
    color: var(--primary-orange);
}

#modal-body h3 {
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#modal-body h4 {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

#modal-body ul {
    margin-left: 20px;
    margin-top: 10px;
}

#modal-body li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

p {
    text-align: justify;
}
