/* ===== RESET Y VARIABLES ===== */
:root {
    --blue: #1565C0;
    --red: #C62828;
    --black: #111;
    --white: #fff;
    --gray: #f5f5f5;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background: #fff;
}

/* Permitir selección en inputs y textos importantes */
input, textarea, select, 
h1, h2, h3, h4, p, .hero-content {
    user-select: text;
}

/* Cursores */
body, html, div, section, nav, footer {
    cursor: default;
}

input, textarea, select {
    cursor: text;
}

a, button, .btn-primary, .btn-secondary, .btn-send, .btn-ver, 
.contact-btn, .filter-btn, .nav-links a, .logo-link {
    cursor: pointer;
}

/* ===== NAVBAR (UNIFICADO) ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 48px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    max-height: 120px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.nav-links {
    
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

.hamburger {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--black);
    display: none;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    padding-top: 160px;
    position: relative;
    overflow: visible;
    background: #fff;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 15;
    padding: 0 48px;
    max-width: 560px;
    animation: fadeInUp 0.8s ease both;
    color: #000000;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--black);
    margin-bottom: 18px;
}

.hero-content p {
    font-size: 1.05rem;
    color: #000000;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== ONDAS ===== */
.wave-rainbow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(90deg,
        #e53935 0%, #f06292 10%, #fdd835 25%,
        #66bb6a 40%, #29b6f6 60%, #7e57c2 75%,
        #ef5350 90%, #e53935 100%);
    opacity: 0.85;
    clip-path: ellipse(120% 100% at 50% 100%);
    z-index: 2;
    -webkit-mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
    mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
}

.wave-white {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 190px;
    background: #fff;
    clip-path: ellipse(110% 100% at 50% 100%);
    z-index: 3;
    -webkit-mask-image: linear-gradient(to top, black 0%, black 40%, transparent 100%);
    mask-image: linear-gradient(to top, black 0%, black 40%, transparent 100%);
}

/* ===== MANCHAS PRINCIPALES ===== */
.ink-top-right {
    position: absolute;
    top: 140px;
    right: 0;
    width: 80% !important;
    max-width: 900px !important;
    height: auto;
    z-index: 5;
    opacity: 0.85;
    pointer-events: none;
}
.ink-bottom-left {
    position: absolute;
    bottom: 60px;
    left: -30px;
    width: 70% !important;
    max-width: 700px !important;
    height: auto;
    z-index: 5;
    opacity: 0.8;
    pointer-events: none;
}

/* Gotitas decorativas */
.ink-top-right::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fdd835;
    border-radius: 50%;
    top: 40px;
    left: 30px;
    box-shadow: 0 0 12px #fdd835;
}

.ink-top-right::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #29b6f6;
    border-radius: 50%;
    top: 80px;
    left: 60px;
    box-shadow: 0 0 10px #29b6f6;
}

/* ===== BOTONES ===== */
.btn-primary {
    padding: 13px 28px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.4);
}

.btn-secondary {
    padding: 13px 28px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(198, 40, 40, 0.4);
}

/* ===== SERVICIOS ===== */
.services {
    background: #fff;
    padding: 80px 48px;
    text-align: center;
    position: relative;
    z-index: 20;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 10px;
}

.section-sub {
    color: #666;
    font-size: 0.97rem;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
    position: relative;
    z-index: 21;
}

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

.card-header {
    position: relative;
    background: #111;
    padding: 14px 12px 10px;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, #2a2a2a, #0a0a0a);
}

.card-header h3 {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    z-index: 1;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 18px 16px;
    flex: 1;
    text-align: left;
}

.card-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--black);
}

.card-body p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.btn-ver {
    display: inline-block;
    padding: 9px 22px;
    background: var(--blue);
    color: #fff;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background .2s;
}

.btn-ver:hover {
    background: #0d47a1;
}

/* ===== BOTTOM SECTION ===== */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    position: relative;
    z-index: 20;
    background: #fff;
}

.catalog {
    padding: 60px 48px;
    background: #fff;
}

.catalog h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.catalog p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.catalog-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.10);
    transition: transform .2s;
}

.catalog-card:hover {
    transform: translateY(-4px);
}

.catalog-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.catalog-card-body {
    padding: 14px;
}

.catalog-card-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.catalog-card-body p {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* ===== CONTACTO (INDEX) ===== */
.contact {
    position: relative;
    background: url('assets/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 400px;
}

.contact::before {
    display: none;
}

.contact h2 {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    z-index: 2;
}

.contact>p {
    position: relative;
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 28px;
    z-index: 2;
}

.contact-btns {
    position: relative;
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    z-index: 2;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    min-width: 90px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.contact-btn .icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.contact-btn.whatsapp {
    background: #25d366;
}

.contact-btn.email {
    background: #1565C0;
}

.btn-send {
    position: relative;
    z-index: 2;
    padding: 13px 36px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.5);
}

.printer-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 280px;
    height: auto;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

/* Manchas decorativas del contacto */
.contact-splash {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.splash-1 {
    width: 80px;
    top: 10%;
    left: 5%;
    animation: float 4s ease-in-out infinite;
}

.splash-2 {
    width: 60px;
    top: 20%;
    right: 8%;
    animation: float 5s ease-in-out infinite 0.5s;
}

.splash-3 {
    width: 100px;
    bottom: 15%;
    left: 10%;
    animation: float 4.5s ease-in-out infinite 1s;
}

.splash-4 {
    width: 70px;
    bottom: 25%;
    right: 5%;
    animation: float 3.5s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* ===== FOOTER DEFINITIVO ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    background: #0a0a0a;
    color: #888;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer p {
    margin: 0;
    line-height: 1.5;
    color: #888;
}

footer span {
    color: #fff;
    font-weight: 700;
}

/* ===== ESTILOS PARA CATÁLOGO Y CONTACTO ===== */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--blue);
    background: transparent;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    color: var(--blue);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--blue);
    color: white;
}

.full-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 48px;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.catalog-item-full {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.catalog-item-full[style*="display: none"] {
    display: none !important;
}

.catalog-item-full[style*="display: flex"] {
    display: flex !important;
}

.catalog-item-full:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.catalog-item-full .card-img {
    height: 180px;
}

.catalog-item-full .card-body {
    text-align: center;
}

.catalog-item-full .catalog-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.catalog-item-full .catalog-features span {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.contact-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact-info-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-info-card .contact-method {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.contact-info-card .contact-icon {
    width: 50px;
    height: 50px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.contact-form-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.alert-msg {
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
}

.map-container {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE (ORDENADO Y CORREGIDO) ===== */

/* Tablets y pantallas medianas (max-width: 1199px) */
@media (max-width: 1199px) {
    .ink-top-right {
        width: 48%;
        max-width: 450px;
    }
    .ink-bottom-left {
        width: 38%;
        max-width: 320px;
    }
}

/* Tablets (max-width: 900px) */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bottom-section {
        grid-template-columns: 1fr;
    }
    nav {
        padding: 14px 24px;
    }
    .hero-content {
        padding: 0 24px;
    }
    .services {
        padding: 60px 24px;
    }
    .catalog {
        padding: 40px 24px;
    }
    .contact {
        padding: 40px 24px;
    }
    .full-catalog-grid {
        padding: 0 24px;
    }
    .contact-page-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 24px;
    }
    .ink-top-right {
        top: 18vh;
        width: 70%;
        max-width: 550px;
        top: 140px;
        opacity: 0.7;
    }
    .ink-bottom-left {
        width: 60%;
        max-width: 420px;
        bottom: 60px;
        left: -40px;
        opacity: 0.7;
    }
}

/* Móviles grandes (max-width: 768px) */
@media (max-width: 768px) {
    nav {
        padding: 10px 20px;
        min-height: 80px;
        background: rgba(0, 0, 0, 0);
    }
    .logo img {
        max-height: 80px;
    }
    .nav-links {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
    .hero {
        padding-top: 130px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .bottom-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .catalog {
        padding: 40px 24px;
    }
    .catalog h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    .catalog p {
        text-align: center;
        font-size: 0.85rem;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact {
        padding: 40px 20px;
        min-height: auto;
    }
    .contact h2 {
        font-size: 1.6rem;
    }
    .contact > p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    .contact-btns {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 250px;
    }
    .contact-btn {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding: 12px 20px;
        min-width: auto;
    }
    .contact-btn .icon {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    .btn-send {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .printer-img {
        width: 150px;
        opacity: 0.5;
    }
    .contact-splash {
        opacity: 0.4;
    }
    .splash-1 { width: 50px; top: 5%; left: 2%; }
    .splash-2 { width: 40px; top: 15%; right: 2%; }
    .splash-3 { width: 60px; bottom: 10%; left: 5%; }
    .splash-4 { width: 45px; bottom: 20%; right: 2%; }
    .ink-top-right {
        top: 18vh;
        width: 75%;
        max-width: 350px;
        right: -15px;
        opacity: 0.5;
    }
    .ink-bottom-left {
        width: 65%;
        max-width: 280px;
        bottom: 80px;
        left: -25px;
        opacity: 0.5;
    }
}
/* ===== CATÁLOGO RESPONSIVE MÓVIL ===== */
@media (max-width: 768px) {
    /* Filtros */
    .catalog-filters {
        gap: 8px;
        margin: 20px 16px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    /* Grid horizontal */
    .full-catalog-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px 40px 16px;
    }
    
    /* Tarjeta horizontal */
    .catalog-item-full {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 12px;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .catalog-item-full .card-header {
        display: none;
    }
    
    .catalog-item-full .card-img {
        width: 100px;
        height: 100px;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
    }
    
    .catalog-item-full .card-body {
        flex: 1;
        padding: 0;
        text-align: left;
    }
    
    .catalog-item-full h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
        font-weight: 700;
    }
    
    .catalog-item-full p {
        font-size: 0.7rem;
        color: #666;
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .catalog-features {
        display: none;
    }
    
    .btn-ver {
        padding: 6px 14px;
        font-size: 0.7rem;
        border-radius: 20px;
    }
}

/* Móviles pequeños (max-width: 600px) */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .ink-top-right {
        top: 18vh;
        width: 80%;
        max-width: 260px; 
        top: 140px;
        opacity: 0.4;
    }
    .ink-bottom-left {
        width: 70%;          
        max-width: 220px;
        bottom: 100px;
        opacity: 0.4;
    }
}

/* Pantallas muy grandes (min-width: 1920px) */
@media (min-width: 1920px) {
    .ink-top-right {
        width: 35%;
        max-width: 600px;
    }
    .ink-bottom-left {
        width: 28%;
        max-width: 450px;
    }
}

/* Pantalla externa (plegado) */
@media (max-width: 480px) {
    .ink-top-right {
        top: 18vh;
        width: 65% !important;
        max-width: 260px !important;
    }
}

/* Pantalla interna (desplegado) */
@media (min-width: 700px) and (max-width: 900px) {
    .ink-top-right {
        top: 18vh;
        width: 55% !important;
        max-width: 380px !important;
    }
    
    .ink-bottom-left {
        bottom: 90px !important;
        width: 45% !important;
        max-width: 280px !important;
    }
}

/* Navbar en páginas oscuras (catálogo y contacto) */
.page-catalogo nav,
.page-contacto nav {
    background: rgba(0, 0, 0, 0.85);
}

.page-catalogo .nav-links a,
.page-contacto .nav-links a {
    color: white;
}

.page-catalogo .nav-links a:hover,
.page-contacto .nav-links a:hover,
.page-catalogo .nav-links a.active,
.page-contacto .nav-links a.active {
    color: #29b6f6;
}
/* ===== MENÚ HAMBURGUESA ===== */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

/* Móvil */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease-in-out;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    /* Overlay oscuro */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

/* Ajuste para páginas oscuras (catálogo y contacto) */
.page-catalogo .hamburger,
.page-contacto .hamburger {
    color: white;
}

.page-catalogo .nav-links,
.page-contacto .nav-links {
    background: rgba(0, 0, 0, 0.95);
}

.page-catalogo .nav-links a,
.page-contacto .nav-links a {
    color: white;
}

/* Fuerza footer abajo */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* ===== CARRUSEL DE SERVICIOS ===== */

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;  /* Cambia de 'hidden' a 'visible' */
    padding: 0 50px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 0;
    min-height: 380px;  /* Altura mínima para que se vean */
}


.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .service-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    min-width: 260px;
    display: flex;  /* Asegura que sea flex */
    flex-direction: column;
}

.carousel-track .service-card:hover {
    transform: translateY(-8px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: #0d47a1;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    background: var(--blue);
    border-radius: 5px;
}

/* Responsive carrusel */
@media (max-width: 768px) {
    .carousel-container {
        padding: 0 40px;
    }
    
    .carousel-track .service-card {
        flex: 0 0 260px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 30px;
    }
    
    .carousel-track .service-card {
        flex: 0 0 240px;
    }
}
@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
/* ===== LOADER PERSONALIZADO INKCOLOR ===== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Contenedor del loader */
.loader-container {
    text-align: center;
}

/* Logo animado */
.loader-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    animation: pulseLogo 1.5s ease-in-out infinite;
}

.loader-logo .grupo {
    color: #1565C0;
}

.loader-logo .ink {
    color: #111;
}

.loader-logo .color {
    background: linear-gradient(90deg, #e53935, #fdd835, #43a047, #1e88e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animación de las gotas de tinta */
.ink-drops {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.drop {
    width: 12px;
    height: 12px;
    background: #1565C0;
    border-radius: 50%;
    animation: dropBounce 0.8s ease-in-out infinite;
}

.drop:nth-child(1) { animation-delay: 0s; background: #e53935; }
.drop:nth-child(2) { animation-delay: 0.1s; background: #fdd835; }
.drop:nth-child(3) { animation-delay: 0.2s; background: #43a047; }
.drop:nth-child(4) { animation-delay: 0.3s; background: #1e88e5; }
.drop:nth-child(5) { animation-delay: 0.4s; background: #1565C0; }

/* Círculo giratorio con colores */
.loader-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #1565C0;
    border-right: 3px solid #e53935;
    border-bottom: 3px solid #fdd835;
    border-left: 3px solid #43a047;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Texto de carga */
.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 2px;
    animation: blinkText 1.5s ease-in-out infinite;
}

/* Animaciones */
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes dropBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.2); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blinkText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== LOADER CON LOGO IMAGEN ===== */
.loader-logo-img {
    text-align: center;
    margin-bottom: 20px;
}

.logo-animated {
    max-width: 180px;
    height: auto;
    animation: logoPulseLoader 1.5s ease-in-out infinite;
}

@keyframes logoPulseLoader {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}