/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    /* Colors */
    --color-primary: #0A192F;
    /* Dark Navy Blue */
    --color-primary-light: #172A45;
    --color-accent: #FF7A00;
    /* Orange */
    --color-accent-hover: #E66A00;
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-text-main: #334155;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Layout */
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --max-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   TYPOGRAPHY & UTILITIES
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.bg-light {
    background-color: var(--color-bg-light);
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    height: var(--header-height);
    transition: box-shadow var(--transition-speed) ease;
}

#header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 68px;
    width: auto;
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

#nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
}

#nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }

    #nav-menu {
        position: static;
        width: auto;
        padding: 0;
        box-shadow: none;
        clip-path: none;
    }

    .nav-links {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-accent);
        transition: width var(--transition-speed);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    /* Fondo con la imagen */
    background-image: url('imagenes/impresoras-p1s.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Capa oscura translúcida y borrosa para separar el fondo del texto */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradiente radial: más oscuro en el centro para leer bien, aclarando hacia los bordes */
    background: radial-gradient(circle at center, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.4) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
}

/* One-column centered layout */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .hero-inner {
        padding: 4rem 1.5rem;
    }
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 122, 0, 0.15);
    border: 1px solid rgba(255, 122, 0, 0.5);
    color: var(--color-accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    font-size: 1rem;
}

/* Dot grid decorative background */
.hero-dots {
    display: none; /* Puntos decorativos blancos ocultos */
}

/* Dual buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

/* Ghost outline button for hero */
.btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Stats strip */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    width: 100%;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* CENTRAR ICONO/NÚMERO */
    text-align: center;
    /* CENTRAR ETIQUETAS */
    gap: 0.3rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Scroll indicator arrow */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    z-index: 3;
    animation: bounce 2s infinite;
    transition: color var(--transition-speed);
}

.hero-scroll-indicator:hover {
    color: var(--color-accent);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}


.hero h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .hero-logo {
        width: 200px;
    }
}

/* Decorative glow blob */
.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 122, 0, 0.15);
    filter: blur(50px);
    z-index: 1;
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--color-accent);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
}

.service-card.destabli {
    border-bottom-color: var(--color-primary);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   GALLERY SECTION
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.gallery-overlay span {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    transform: translateY(20px);
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Skeleton loader animation */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.gallery-item.skeleton {
    background: linear-gradient(90deg,
            #e0e0e0 25%, #f0f0f0 37%, #e0e0e0 63%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
    cursor: default;
    box-shadow: none;
}

/* Gallery error state */
.gallery-error {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}

.gallery-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--color-accent);
}

.gallery-cta {
    margin-top: 0.5rem;
}

/* Behold.so widget wrapper */
.behold-wrapper {
    margin-bottom: 2.5rem;
    width: 100%;
}

behold-widget {
    --behold-border-radius: 8px;
    --behold-gap: 12px;
}

@media (min-width: 768px) {
    behold-widget {
        --behold-gap: 16px;
    }
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-item h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.info-item a,
.info-item p {
    color: var(--color-text-muted);
}

.info-item a:hover {
    color: var(--color-accent);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

#form-status {
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

.status-success {
    color: #10B981;
}

.status-error {
    color: #EF4444;
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 2fr;
    }
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #94A3B8;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.footer-socials a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: var(--color-primary-light);
    text-align: center;
    padding: 1.5rem 0;
    color: #94A3B8;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-brand {
        max-width: 400px;
    }
}

/* =========================================
   ABOUT / NOSOTROS SECTION
========================================= */
.about {
    background-color: var(--color-bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1.4fr;
        align-items: start;
    }
}

/* Personal info card */
.about-info {
    background: var(--color-bg-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-avatar {
    margin-bottom: 1.2rem;
}

.about-avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-accent);
    box-shadow: 0 4px 16px rgba(255, 122, 0, 0.25);
}

.about-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.about-role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem !important;
    font-size: 0.95rem;
}

/* Detail list */
.about-details {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.about-details li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-muted);
}

.about-details li i {
    color: var(--color-accent);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.about-details a {
    color: var(--color-text-muted);
}

.about-details a:hover {
    color: var(--color-accent);
}

/* Highlight chips */
.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.highlight-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.highlight-chip i {
    color: var(--color-accent);
}

/* Map */
.about-map h4 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    line-height: 0;
}

.map-wrapper iframe {
    display: block;
}

.map-caption {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.map-caption i {
    color: var(--color-accent);
}