/* =============================================
   ARLES - ESTILOS PRINCIPALES
   Diseño profesional y moderno
   ============================================= */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.highlight {
    color: var(--color-primary);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    box-shadow: 0 2px 10px var(--header-shadow);
    z-index: var(--z-fixed);
    transition: var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px var(--header-shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

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

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: var(--font-weight-semibold);
    color: var(--header-text);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

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

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    height: 100vh;
    margin-top: var(--header-height);
}

/* ===== PAGE BANNER (Internal pages) ===== */
.page-banner {
    position: relative;
    height: 50vh;
    min-height: 400px;
    margin-top: var(--header-height);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.page-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.page-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-black);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-white);
    font-weight: var(--font-weight-light);
    text-align: center;
}

.hero-swiper {
    height: 100%;
}

.swiper-slide {
    position: relative;
    height: 100%;
}

.swiper-slide .container {
    height: 100%;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Animación controlada por JS - ver index.php */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-content.left {
    align-items: flex-start;
    text-align: left;
}

.banner-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-black);
    color: var(--color-white);
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.banner-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-white);
    font-weight: var(--font-weight-light);
    animation: fadeInUp 1s ease 0.3s both;
}

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

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
    color: var(--color-white);
    width: 44px;
    height: 44px;
    background: transparent;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 0.8;
}

.swiper-pagination-bullet {
    background: var(--color-white);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    padding: var(--spacing-4xl) 0;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-gray-900);
}

.lead-text {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-700);
    margin-bottom: 1rem;
}

.welcome-text p {
    margin-bottom: 1rem;
    color: var(--color-gray-600);
}

.welcome-image {
    overflow: hidden;
}

.welcome-image img {
    width: 100%;
    border-radius: 8px;
    transition: transform var(--transition-slow);
}

.welcome-image:hover img {
    transform: scale(1.05);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    margin-top: 1rem;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-more {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: var(--font-weight-semibold);
    margin-top: 1rem;
    transition: var(--transition-base);
}

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

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: var(--section-padding) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.content-text h2 {
    margin-bottom: 1rem;
}

.lead-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content-text p {
    margin: 0 0 1.5rem 0;
    padding: 0;
    line-height: 1.8;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-single {
    max-width: 900px;
    margin: 0 auto;
}

.content-single h2 {
    margin-bottom: 1.5rem;
}

.content-single h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-2xl);
    color: var(--color-dark);
}

.content-single h4 {
    margin-bottom: 1rem;
    font-size: var(--font-size-xl);
    color: var(--color-dark);
}

.content-single p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-list {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.content-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.highlight-box {
    background: var(--color-light);
    padding: 2rem;
    border-left: 4px solid var(--color-primary);
    border-radius: 5px;
    margin: 2rem 0;
}

.highlight-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.content-cta {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

/* Values Section */
.values-section {
    padding: var(--section-padding) 0;
    background: var(--color-light);
}

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

.value-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 2rem;
}

.value-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.value-card p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: var(--section-padding) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

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

.member-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.member-name {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.member-role {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.member-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
    border-radius: 50%;
    color: var(--color-dark);
    transition: var(--transition-base);
}

.member-social a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    margin-top: 4rem;
    background: var(--color-primary);
    text-align: center;
}

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

.cta-content p {
    text-align: center;
}

.cta-content h2 {
    font-size: var(--font-size-4xl);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: var(--font-size-xl);
    color: var(--color-white);
    margin-bottom: 2rem;
}

/* Botón del CTA: sólido, rojo con texto blanco, siempre visible */
.cta-section .btn-primary {
    background: var(--color-secondary) !important;
    color: var(--color-white) !important;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cta-section .btn-primary:hover {
    background: var(--color-secondary-hover, var(--color-secondary)) !important;
    filter: brightness(0.9);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 48px 0;
    background: var(--color-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    margin-top: 0.5rem;
    text-align: center;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.services-grid .service-card {
    flex: 1 1 300px;
    max-width: 400px;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--color-white);
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

.service-description {
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-logo .logo-text {
    color: var(--color-white);
}

.footer-description {
    line-height: 1.7;
}

.footer-title {
    color: var(--footer-title);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    /* Color secundario del sitio (Configuración > Apariencia): resalta sobre el fondo oscuro del footer */
    color: var(--color-secondary);
}
/* Opción del admin (Configuración > Footer > Color de los íconos de contacto) */
.footer-contact.icons-primary i { color: var(--color-primary); }
.footer-contact.icons-white i { color: var(--color-footer-text, #ffffff); }

.social-icons-footer {
    display: flex;
    gap: 1rem;
}

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

.social-icons-footer a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

/* ===== FLOATING ELEMENTS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: var(--z-fixed);
    animation: pulse 2s infinite;
}

.whatsapp-float i {
    font-size: 2rem;
    color: var(--color-white);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

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

.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: var(--z-fixed);
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition-base);
}

.social-icon:hover {
    transform: translateX(-5px);
}

.social-icon.facebook {
    background: #3b5998;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.twitter {
    background: #000000;
}

.social-icon.youtube {
    background: #FF0000;
}

.social-icon.tiktok {
    background: #010101;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 600px;
    margin: 5% auto;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--color-gray-500);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-800);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 2rem;
    color: var(--color-white);
}

.modal-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
}

.modal-body {
    color: var(--color-gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-body ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

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

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 48px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.product-badge.sale {
    background: #e74c3c;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.product-description {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.old-price {
    font-size: var(--font-size-base);
    color: var(--color-text);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.btn-product {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-product:hover {
    background: var(--color-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.contact-form-wrapper,
.contact-info-wrapper {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: var(--transition-base);
}

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

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.contact-info-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.25rem;
}

.info-content h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.info-content p {
    color: var(--color-text);
    line-height: 1.6;
}

.social-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.social-contact h4 {
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.map-section {
    margin-top: 0;
}

.map-container {
    width: 100%;
    height: 450px;
}

.map-container iframe {
    filter: grayscale(20%);
}

/* ===== ERROR 404 ===== */
.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    /* El header es fijo: se deja libre su alto para que el 404 no quede tapado (--section-padding no existe en este sitio) */
    padding: calc(var(--header-height) + 3rem) 0 4rem;
    text-align: center;
}
.error-actions .btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.error-actions .btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-number {
    font-size: 10rem;
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: var(--font-size-4xl);
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.error-text {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    margin-bottom: 2.5rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.error-search {
    margin-top: 3rem;
}

.error-search p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.quick-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-links a {
    padding: 0.75rem 1.5rem;
    background: var(--color-light);
    border-radius: 5px;
    color: var(--color-dark);
    transition: var(--transition-base);
}

.quick-links a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Button Outline */
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 0.875rem 2rem;
    border-radius: 5px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

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

.content-section .btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.content-section .btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
/* Ajustes solicitados */

/* Justificar párrafos */
p {
    text-align: justify;
}

/* Separación entre secciones Values y Team */
.team-section {
    padding-top: 5rem;
}

/* Separación de imagen en Quiénes Somos */
.content-section {
    padding-top: 4rem;
}

/* Footer link */
.footer-bottom a {
    color: var(--color-white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

.footer-bottom a:hover {
    border-bottom-color: var(--color-white);
}
/* ============================================
   AJUSTES FINALES - UNIFICACIÓN DE ESPACIOS
   ============================================ */

/* Reducir espacios generales entre secciones */
.welcome-section,
.services-section,
.products-section,
.content-section,
.values-section,
.team-section,
.contact-section {
    padding: 3rem 0;
}

/* Reducir espacio entre bienvenida y sección personalizada siguiente */
.welcome-section {
    padding-bottom: 1rem;
}
.custom-section {
    padding-top: 0;
}
/* Reducir espacio entre banner y contenido */
.page-banner {
    margin-bottom: 3rem;
}

/* CTA section */
.cta-section {
    padding: 4rem 0;
    margin-top: 3rem;
}

/* Unificar tamaños de titulares */
.section-title,
.page-title {
    font-size: 2.5rem !important;
}

h2.section-title {
    font-size: 2.5rem !important;
}

h3 {
    font-size: 1.5rem !important;
}

/* Quitar box-shadow de contact */
.contact-form-wrapper,
.contact-info-wrapper {
    box-shadow: none !important;
    border: 1px solid #e0e0e0;
}

/* Centrar footer */
.footer-bottom {
    text-align: center !important;
}

.footer-bottom p {
    text-align: center !important;
}

/* Quitar flechas del slider, solo bullets */
.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}

/* Services cards - alinear botones al fondo */
.service-card {
    display: flex;
    flex-direction: column;
}

.service-description {
    flex-grow: 1;
}

/* Eliminado - ver regla específica más abajo */

/* ============================================
   BUSCADOR
   ============================================ */

.search-toggle {
    background: none;
    border: none;
    color: var(--color-header-text, var(--color-dark));
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: var(--transition-base);
}

.search-toggle:hover {
    color: var(--color-primary);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    backdrop-filter: blur(8px);
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.search-box {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
}

.search-box:focus-within {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.12);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1.1rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: var(--color-white);
    font-weight: 400;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-submit {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1.1rem;
}

.search-submit:hover {
    color: var(--color-primary);
}

.search-results {
    margin-top: 1.25rem;
    color: var(--color-white);
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 4px;
}

.search-results::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.search-hint {
    text-align: center;
    opacity: 0.45;
    font-size: 0.95rem;
    padding: 2rem 0;
}

a.search-result-item,
.search-result-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    margin-bottom: 6px;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

a.search-result-item:hover,
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.search-result-item h4 {
    color: var(--color-white);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.search-result-item p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.search-result-type {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

@media (max-width: 768px) {
    .search-modal {
        padding-top: 8vh;
    }
    .search-modal-content {
        padding: 0 1rem;
    }
    .search-box input {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
}
/* ============================================
   AJUSTES FINALES
   ============================================ */

/* Header - alinear búsqueda a la derecha */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    margin-right: 0;
}

.main-nav {
    margin-left: auto;
    margin-right: 0;
}

.search-toggle {
    margin-left: 1rem;
    order: 2;
}

#cartTotalHeader {
    order: 2;
}

.mobile-menu-toggle {
    order: 3;
    margin-left: 1rem;
}

/* ============================================
   NOTE: Service cards styling moved to services.css
   Product cards styling is below
   ============================================ */

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

/* Contacto - quitar bordes */
.contact-form-wrapper,
.contact-info-wrapper {
    border: none !important;
}

/* Títulos de contacto más pequeños */
.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 1.75rem !important;
}

/* Imagen en Quiénes Somos - Mismo que Welcome */
.content-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.content-image img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
    display: block;
}

.content-image:hover img {
    transform: scale(1.05);
}

/* Modal con scroll si hay mucho contenido */
.modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 1rem;
    margin-right: -0.5rem;
    flex-shrink: 1;
}

.modal-footer {
    padding-top: 1.5rem;
    flex-shrink: 0;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 5px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Centrar botón de contacto */
.contact-form button[type="submit"] {
    display: block;
    margin: 0 auto;
}

/* Iconos de redes sociales en contacto - color visible */
.contact-info-wrapper .social-icons-footer a {
    background: var(--color-light);
    color: var(--color-dark);
}

.contact-info-wrapper .social-icons-footer a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   CLIENTS/LOGOS SECTION
   ============================================ */

.clients-section {
    padding: 2rem 0;
    background: var(--color-white);
}

/* Menos espacio entre el subtítulo y los logos en esta sección */
.clients-section .section-header {
    margin-bottom: 1rem;
}

/* Menos espacio entre los logos y el CTA que viene justo después */
.clients-section + .cta-section {
    margin-top: 0.5rem;
}

/* Carrusel de logos en loop continuo (efecto "cinta transportadora") */
.clients-marquee {
    margin-top: 0.75rem;
    padding: 0.75rem 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.clients-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: clients-marquee-scroll 25s linear infinite;
}

.clients-marquee:hover .clients-marquee-track {
    animation-play-state: paused;
}

@keyframes clients-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    margin: 0 1rem;
    background: #ffffff;
    border-radius: 12px;
    transition: var(--transition-base);
    height: 100px;
    flex-shrink: 0;
}

.client-logo:hover {
    transform: translateY(-4px);
}

.client-logo img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition-base);
}

.client-logo:hover img {
    filter: none;
    opacity: 1;
}

/* Ocultar redes sociales móvil en desktop */
.mobile-social {
    display: none;
}

/* ============================================
   GALLERY/PROJECTS SECTION
   ============================================ */

.gallery-section {
    padding: 3rem 0;
    background: var(--color-light);
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
    font-size: inherit;
    line-height: 1.4;
}

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

/* ============================================
   PRODUCT FILTERS - Smart Category System
   ============================================ */

/* Toolbar: categories + sort in one row */
.products-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.product-sort {
    flex-shrink: 0;
}

.product-sort select {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 36px 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    background-image: url('data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%236b7280%22 stroke-width=%222%22><polyline points=%226 9 12 15 18 9%22/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.product-filters-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.product-filters-wrap .product-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Desktop scroll mode (5+ categories) */
.product-filters-wrap.has-scroll .product-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
    flex: 1;
    min-width: 0;
}

.product-filters-wrap.has-scroll .product-filters::-webkit-scrollbar {
    display: none;
}

/* Scroll arrows (desktop only) */
.pf-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 2;
}

.pf-arrow:hover {
    background: #f3f4f6;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.product-filters-wrap.has-scroll .pf-arrow {
    display: flex;
}

.pf-arrow-left { margin-right: 8px; }
.pf-arrow-right { margin-left: 8px; }

/* Mobile toolbar: hidden on desktop */
.products-toolbar-mobile {
    display: none;
}

/* Mobile dropdown selects */
.mobile-filter-select {
    position: relative;
    flex: 1;
    min-width: 0;
}

.mobile-filter-select i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary, #667eea);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.mobile-filter-select select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 36px 12px 38px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url('data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%236b7280%22 stroke-width=%222%22><polyline points=%226 9 12 15 18 9%22/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.mobile-filter-select select:focus {
    border-color: var(--color-primary, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .products-section {
        padding-top: 20px;
    }

    /* Hide desktop toolbar, show mobile */
    .products-toolbar-desktop {
        display: none;
    }

    .products-toolbar-mobile {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }
}

/* ===== Products Pagination ===== */
.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.products-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #374151;
    background: white;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
    cursor: pointer;
}

.products-pagination .page-btn:hover {
    border-color: var(--color-primary, #667eea);
    color: var(--color-primary, #667eea);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.products-pagination .page-current {
    background: var(--color-primary, #667eea);
    color: white;
    border-color: var(--color-primary, #667eea);
    cursor: default;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.products-pagination .page-current:hover {
    color: white;
    transform: none;
}

.products-pagination .page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 42px;
    color: #9ca3af;
    font-size: 16px;
    letter-spacing: 2px;
}

.products-pagination .page-prev,
.products-pagination .page-next {
    font-size: 13px;
}

.products-pagination-info {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #9ca3af;
}

@media (max-width: 767px) {
    .products-pagination .page-btn {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        border-radius: 8px;
    }

    .products-pagination {
        margin-top: 30px;
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item.hidden {
    display: none;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.75));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 1;
    pointer-events: auto;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.9));
}

.gallery-overlay h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.btn-view {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    align-self: flex-start;
}

.btn-view:hover {
    background: var(--color-secondary);
}

/* Gallery Modal */
.gallery-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery-modal-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.gallery-modal-info h3 {
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.gallery-modal-category {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.gallery-modal-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

#galleryModalFeatures {
    list-style: none;
    padding: 0;
}

#galleryModalFeatures li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

#galleryModalFeatures li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ============================================
   GALLERY MODAL MEJORADO - IMAGEN GRANDE
   ============================================ */

.gallery-modal-fullscreen {
    max-width: 95vw;
    max-height: 95vh;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-modal-image-full {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-image-full img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-modal-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 70%, transparent 100%);
    padding: 3rem 2rem 2rem;
    color: white;
    border-radius: 0 0 10px 10px;
    max-height: 50vh;
    overflow-y: auto;
}

.gallery-modal-info-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.gallery-modal-info-overlay .gallery-modal-category {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.gallery-modal-info-overlay p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-modal-info-overlay ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gallery-modal-info-overlay li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-modal-info-overlay li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Scrollbar personalizado para info overlay */
.gallery-modal-info-overlay::-webkit-scrollbar {
    width: 6px;
}

.gallery-modal-info-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.gallery-modal-info-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.gallery-modal-info-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   GALLERY MODAL SIMPLE - SOLO IMAGEN
   ============================================ */

.gallery-modal-simple {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}
/* Ocultar hamburguesa en desktop */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Modal de galería centrado */
#galleryModal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#galleryModal .modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    z-index: 10000;
}

#galleryModal .modal-close:hover {
    background: rgba(0, 0, 0, 1);
}
/* ===== HOSTING SPECS CARD ===== */
.hosting-specs {
    width: 100%;
    text-align: left;
}
.hosting-specs .spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    gap: 8px;
}
.hosting-specs .spec-row:last-child { border-bottom: none; }
.hosting-specs .spec-label { color: #555; }
.hosting-specs .spec-val { font-weight: 600; color: #333; white-space: nowrap; }
.hosting-specs .spec-highlight .spec-val { color: var(--color-primary); }

/* ===== SCROLL ANIMATIONS (Intersection Observer) ===== */
.ws-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ws-animate.ws-visible {
    opacity: 1;
    transform: translateY(0);
}
.ws-animate-left  { opacity:0; transform:translateX(-40px); transition:opacity .6s ease,transform .6s ease; }
.ws-animate-right { opacity:0; transform:translateX(40px);  transition:opacity .6s ease,transform .6s ease; }
.ws-animate-left.ws-visible,
.ws-animate-right.ws-visible { opacity:1; transform:translateX(0); }

/* Stagger delay for card grids */
.ws-stagger > *:nth-child(1) { transition-delay:.05s }
.ws-stagger > *:nth-child(2) { transition-delay:.15s }
.ws-stagger > *:nth-child(3) { transition-delay:.25s }
.ws-stagger > *:nth-child(4) { transition-delay:.35s }
.ws-stagger > *:nth-child(5) { transition-delay:.45s }
.ws-stagger > *:nth-child(6) { transition-delay:.55s }

/* ===== PASTEL CARD COLORS ===== */
/* Service cards */
.services-grid .service-card:nth-child(6n+1) { background: #fff9f0; }
.services-grid .service-card:nth-child(6n+2) { background: #f0f4ff; }
.services-grid .service-card:nth-child(6n+3) { background: #f0fff8; }
.services-grid .service-card:nth-child(6n+4) { background: #f5f0ff; }
.services-grid .service-card:nth-child(6n+5) { background: #fff0f5; }
.services-grid .service-card:nth-child(6n+6) { background: #f0faff; }

/* Product / hosting cards */
.products-grid .product-card:nth-child(9n+1) { background: #f0f4ff !important; }
.products-grid .product-card:nth-child(9n+2) { background: #fff9f0 !important; }
.products-grid .product-card:nth-child(9n+3) { background: #f0fff8 !important; }
.products-grid .product-card:nth-child(9n+4) { background: #f5f0ff !important; }
.products-grid .product-card:nth-child(9n+5) { background: #fff0f5 !important; }
.products-grid .product-card:nth-child(9n+6) { background: #f0faff !important; }
.products-grid .product-card:nth-child(9n+7) { background: #fffff0 !important; }
.products-grid .product-card:nth-child(9n+8) { background: #f0f9ff !important; }
.products-grid .product-card:nth-child(9n+9) { background: #fff5f0 !important; }

/* Product cards inside the home carousel (each card is wrapped in .phc-slide,
   so the pastel cycle is applied to the slide wrapper instead) */
.phc-track .phc-slide:nth-child(9n+1) .product-card { background: #f0f4ff !important; }
.phc-track .phc-slide:nth-child(9n+2) .product-card { background: #fff9f0 !important; }
.phc-track .phc-slide:nth-child(9n+3) .product-card { background: #f0fff8 !important; }
.phc-track .phc-slide:nth-child(9n+4) .product-card { background: #f5f0ff !important; }
.phc-track .phc-slide:nth-child(9n+5) .product-card { background: #fff0f5 !important; }
.phc-track .phc-slide:nth-child(9n+6) .product-card { background: #f0faff !important; }
.phc-track .phc-slide:nth-child(9n+7) .product-card { background: #fffff0 !important; }
.phc-track .phc-slide:nth-child(9n+8) .product-card { background: #f0f9ff !important; }
.phc-track .phc-slide:nth-child(9n+9) .product-card { background: #fff5f0 !important; }

.phc-track .product-card {
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.phc-track .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Product cards with a real photo as a faint, sharp background (home carousel) */
.product-card.has-bg-photo .product-image-wrap { display: none; }
.phc-track .phc-slide .product-card.has-bg-photo { background: #ffffff !important; }
.product-card.has-bg-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-photo);
    background-size: cover;
    background-position: center;
    opacity: 0.10;
    z-index: 0;
}
.product-card.has-bg-photo > * {
    position: relative;
    z-index: 2;
}

/* About / value cards */
.value-card:nth-child(3n+1) { background: #fff9f0; }
.value-card:nth-child(3n+2) { background: #f0f4ff; }
.value-card:nth-child(3n+3) { background: #f0fff8; }
/* Servicios del inicio: N columnas fijas cuando el ajuste grid_cols_services_home es numerico */
.services-grid[style*="--svc-cols"] .service-card {
    flex: 0 1 calc((100% - (var(--svc-cols) - 1) * 2rem) / var(--svc-cols));
    min-width: 220px;
    max-width: none;
}

/* Servicios del inicio con foto de fondo suave (mismo efecto que las tarjetas de productos) */
.services-grid .service-card.has-bg-photo { position: relative; overflow: hidden; background: #ffffff !important; }
.services-grid .service-card.has-bg-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-photo);
    background-size: cover;
    background-position: center;
    opacity: 0.14;
    z-index: 0;
}
.services-grid .service-card.has-bg-photo > * { position: relative; z-index: 2; }

/* Titular del banner en líneas: "TEXTO|*DESTACADO*|TEXTO" (separado por | y resaltado con *) */
.banner-title.banner-title-stack {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.02;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.banner-title-stack .tl { display: block; font-size: clamp(1.25rem, 3.4vw, 2.9rem); }
.banner-title-stack .tl-main { font-size: clamp(2.1rem, 7.6vw, 6rem); margin: 0.04em 0; }
.banner-title-stack .hl {
    color: #7DB3FF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Tipografía de impacto para los titulares del banner (Montserrat, alojada en el sitio) */
@font-face { font-family: 'BanMont'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/montserrat-light.woff2') format('woff2'); }
@font-face { font-family: 'BanMont'; font-weight: 900; font-style: italic; font-display: swap; src: url('../fonts/montserrat-blackitalic.woff2') format('woff2'); }
@font-face { font-family: 'BanMont'; font-weight: 900; font-style: normal; font-display: swap; src: url('../fonts/montserrat-black.woff2') format('woff2'); }
.banner-title.banner-title-stack { font-family: 'BanMont', 'Nunito', Arial, sans-serif; letter-spacing: 0; line-height: 1; }
.banner-title-stack .tl { font-weight: 300; letter-spacing: 0.14em; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 16px rgba(0,0,0,.75); }
.banner-title-stack .tl-main { font-weight: 900; font-style: italic; letter-spacing: -0.02em; line-height: 0.96; margin: 0.06em 0 0.1em; }

/* ===== Servicios: tarjeta con foto arriba ===== */
.services-grid .service-card.svc-photo-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(1, 26, 77, 0.12);
}
.svc-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe6f3; }
.svc-photo picture, .svc-photo img { display: block; width: 100%; height: 100%; }
.svc-photo img { object-fit: cover; transition: transform 0.7s ease; }
.svc-photo-card:hover .svc-photo img { transform: scale(1.07); }
.svc-photo-empty {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), #2a5bd7);
}
.svc-photo-empty i { font-size: 4.4rem; color: #fff; opacity: 0.92; }
.svc-photo-empty + .service-icon { display: none; }
.svc-photo-card .service-icon {
    width: 64px; height: 64px; margin: -32px auto 0.6rem !important; position: relative; z-index: 2;
    border: 4px solid #fff; box-shadow: 0 4px 12px rgba(1, 26, 77, 0.25);
}
.svc-photo-card .service-icon i { font-size: 1.5rem; }
.svc-photo-empty ~ .service-title { margin-top: 1.3rem; }
.svc-photo-card .service-title { padding: 0 0.9rem; margin-bottom: 0.6rem; font-size: 1.1rem !important; overflow-wrap: normal; hyphens: none; }
.svc-photo-card .service-description { padding: 0 1.1rem 1.4rem; margin-bottom: 0; font-size: 0.95rem; flex: 1; }
.svc-photo-card .btn-more { margin: 0 auto 1.4rem; }

/* ===== Equipos y capacidades ===== */
.equipment-block { margin-top: 4rem; }
.equipment-title { text-align: center; font-size: 1.9rem; font-weight: 800; color: var(--color-primary); margin: 0 0 1.8rem; }
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.equipment-item {
    display: flex; align-items: center; gap: 0.9rem;
    background: #fff; border-radius: 14px; padding: 1rem 1.1rem;
    box-shadow: 0 4px 16px rgba(1, 26, 77, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.equipment-item:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(1, 26, 77, 0.14); }
.equipment-item:nth-child(5n+1) { background: #fff9f0; }
.equipment-item:nth-child(5n+2) { background: #f0f4ff; }
.equipment-item:nth-child(5n+3) { background: #f0fff8; }
.equipment-item:nth-child(5n+4) { background: #f5f0ff; }
.equipment-item:nth-child(5n+5) { background: #fff0f5; }
.equipment-icon {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.equipment-text strong { display: block; font-size: 1.05rem; color: var(--color-gray-900, #1f2937); line-height: 1.25; }
.equipment-text span { display: block; font-size: 0.92rem; color: var(--color-gray-600, #6b7280); margin-top: 2px; }
.equipment-note { text-align: center; margin: 1.4rem 0 0; color: var(--color-gray-600, #6b7280); font-size: 0.95rem; }
@media (max-width: 768px) {
    .equipment-block { margin-top: 2.6rem; }
    .equipment-title { font-size: 1.5rem; }
    .equipment-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .equipment-item { padding: 0.8rem; gap: 0.6rem; }
    .equipment-icon { flex-basis: 42px; width: 42px; height: 42px; font-size: 1.05rem; }
    .equipment-text strong { font-size: 0.92rem; }
    .equipment-text span { font-size: 0.82rem; }
}
@media (max-width: 480px) { .equipment-grid { grid-template-columns: 1fr; } }

/* Correos por área en Contacto */
.dept-emails { margin-top: 28px; padding: 20px 22px; background: #f0f4ff; border-radius: 14px; }
.dept-emails h4 { margin: 0 0 12px; font-size: 1.05rem; color: var(--color-primary); }
.dept-emails h4 i { margin-right: 8px; }
.dept-emails ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dept-emails li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding: 8px 0; border-bottom: 1px solid rgba(1, 39, 112, 0.1); }
.dept-emails li:last-child { border-bottom: 0; }
.dept-emails li span { font-weight: 700; color: #1f2937; }

/* Teléfono y correo por área */
.dept-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dept-contact i { font-size: 0.8em; margin-right: 4px; }
@media (max-width: 480px) { .dept-contact { align-items: flex-start; } }

/* Grupos de servicios (Transporte pesado / liviano) */
.svc-group + .svc-group { margin-top: 3.2rem; }
.svc-group-title { text-align: center; margin: 0 0 1.6rem; position: relative; }
.svc-group-title::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(1, 39, 112, 0.18); }
.svc-group-title span {
    position: relative; display: inline-block; padding: 0 1.2rem;
    background: var(--svc-group-bg, #f8f9fc); color: var(--color-primary);
    font-size: 1.35rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
.services-section .svc-group-title span { background: transparent; backdrop-filter: none; }

/* Servicios en filas parejas (3+3, 4+3, 5+5...) */
.services-grid.svc-rows { display: block; }
.svc-rows .svc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.svc-rows .svc-row + .svc-row { margin-top: 1.6rem; }
.svc-rows .service-card,
.svc-rows .service-card.svc-photo-card {
    flex: 0 0 calc((100% - (var(--svc-k) - 1) * 1.6rem) / var(--svc-k));
    max-width: 380px;
    min-width: 0;
}
@media (max-width: 900px) {
    .svc-rows .service-card, .svc-rows .service-card.svc-photo-card { flex-basis: calc((100% - 1.6rem) / 2); max-width: none; }
}
@media (max-width: 560px) {
    .svc-rows .service-card, .svc-rows .service-card.svc-photo-card { flex-basis: 100%; }
}

/* Etiqueta de categoría sobre la foto del servicio */
.svc-tag {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    padding: 4px 11px; border-radius: 999px;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.svc-tag-heavy { background: var(--color-primary); }
.svc-tag-light { background: var(--color-secondary); }

/* ===== Servicios: diseño limpio (foto + título), con visor al hacer clic ===== */
.services-grid .service-card.svc-photo-card {
    position: relative; display: block; padding: 0; overflow: hidden; cursor: zoom-in;
    aspect-ratio: 4 / 3; border-radius: 14px; background: #0b1f4d !important;
    box-shadow: 0 8px 24px rgba(1, 26, 77, 0.18);
}
.svc-photo-card picture, .svc-photo-card .svc-photo-img { display: block; width: 100%; height: 100%; }
.svc-photo-card .svc-photo-img { object-fit: cover; transition: transform 0.7s ease; }
.svc-photo-card:hover .svc-photo-img { transform: scale(1.06); }
.svc-photo-card.svc-nophoto { cursor: default; background: linear-gradient(135deg, #011a4d, #1f4fc4) !important; }
.svc-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 0.95rem;
    background: linear-gradient(180deg, rgba(1, 26, 77, 0) 0%, rgba(1, 26, 77, 0.78) 55%, rgba(1, 26, 77, 0.92) 100%);
    text-align: left; pointer-events: none;
}
.svc-photo-card.svc-nophoto .svc-caption { background: none; top: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.svc-cat { display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.18em; color: #9cc2ff; margin-bottom: 3px; }
.svc-name { margin: 0 !important; padding: 0 !important; color: #fff; font-size: 1.12rem !important; font-weight: 800; line-height: 1.2; letter-spacing: 0.01em; text-align: left !important; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.svc-sub { margin: 4px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; line-height: 1.3; }
.svc-photo-card:focus-visible { outline: 3px solid #7DB3FF; outline-offset: 2px; }

/* ===== Modal de foto compartido (galería y servicios) ===== */
#galleryModal { z-index: 2147483000; }
#galleryModal.active { display: flex !important; align-items: center; justify-content: center; }
#galleryModal .modal-overlay { background: rgba(2, 10, 30, 0.99); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); cursor: zoom-out; }
#galleryModal .gallery-modal-simple {
    position: relative; margin: 0 !important; padding: 0 !important; max-width: min(1100px, 92vw); max-height: 92vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: transparent; animation: gmIn 0.28s ease;
}
@keyframes gmIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
#galleryModal .gallery-modal-img {
    max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain;
    border-radius: 14px; border: 0; background: transparent;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
#galleryModal .gm-caption {
    color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; text-align: center;
    padding: 8px 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
    min-height: 1.2em;
}
#galleryModal .gm-caption:empty { display: none; }
#galleryModal .modal-close {
    position: fixed !important; top: 18px !important; right: 22px !important; z-index: 3;
    width: 48px !important; height: 48px !important; border-radius: 50%;
    background: #fff !important; color: #011a4d !important; font-size: 2rem; line-height: 1;
    border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); transition: transform 0.25s, background 0.25s, color 0.25s;
}
#galleryModal .modal-close:hover { transform: rotate(90deg) scale(1.06); background: #EC0110 !important; color: #fff !important; }
#galleryModal .gm-nav {
    position: fixed; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.3rem; cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}
#galleryModal .gm-nav[hidden] { display: none; }
#galleryModal .gm-nav:hover { background: rgba(255, 255, 255, 0.3); }
#galleryModal .gm-prev { left: 20px; } #galleryModal .gm-next { right: 20px; }
@media (max-width: 768px) {
    #galleryModal .gallery-modal-img { max-height: 70vh; }
    #galleryModal .gm-nav { top: auto; bottom: 22px; transform: none; width: 46px; height: 46px; }
    #galleryModal .gm-prev { left: 22px; } #galleryModal .gm-next { right: 22px; }
    #galleryModal .modal-close { top: 12px !important; right: 14px !important; width: 44px !important; height: 44px !important; }
}

/* El botón X del modal compartido: especificidad alta para ganar a mobile-fixes.css */
html body #galleryModal button#galleryClose.modal-close {
    background: #fff !important; color: #011a4d !important; width: 48px !important; height: 48px !important;
    top: 18px !important; right: 22px !important; border-radius: 50% !important; font-size: 2rem !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
}
html body #galleryModal button#galleryClose.modal-close:hover { background: #EC0110 !important; color: #fff !important; transform: rotate(90deg) scale(1.06); }
@media (max-width: 768px) {
    html body #galleryModal button#galleryClose.modal-close { width: 44px !important; height: 44px !important; top: 12px !important; right: 14px !important; }
}

/* Banner con menos capa oscura: refuerza la legibilidad del texto con sombra */
.hero-slide .banner-title-stack .tl { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 28px rgba(0, 0, 0, 0.5); }
.hero-slide .banner-title-stack .hl { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 2px 22px rgba(0, 0, 0, 0.7); }
.hero-slide .banner-subtitle { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 12px rgba(0, 0, 0, 0.8); font-weight: 400; }

/* Banners internos con poca capa oscura: sombra fuerte para que el título se lea sobre cualquier foto */
.page-banner .page-title, .page-banner-content .page-title, .page-title {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9), 0 4px 22px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 0, 0, 0.55);
}
.page-banner .page-subtitle, .page-banner-content .page-subtitle, .page-subtitle {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 14px rgba(0, 0, 0, 0.85);
}

/* ===== Galería: diseño limpio como Servicios (la foto es la protagonista; solo un título discreto abajo) ===== */
.gallery-item { border-radius: 14px; box-shadow: 0 8px 24px rgba(1, 26, 77, 0.18); cursor: zoom-in; }
.gallery-item img { transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay,
.gallery-item:hover .gallery-overlay {
    top: auto; bottom: 0; height: auto; padding: 2.2rem 1rem 0.85rem; pointer-events: none;
    background: linear-gradient(180deg, rgba(1, 26, 77, 0) 0%, rgba(1, 26, 77, 0.72) 55%, rgba(1, 26, 77, 0.9) 100%);
}
.gallery-overlay h3 { margin: 0 !important; font-size: 1rem !important; font-weight: 700 !important; line-height: 1.25; text-align: left; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.gallery-overlay p, .gallery-overlay .btn-view { display: none; }
@media (max-width: 768px) { .gallery-overlay h3 { font-size: 0.92rem !important; } }

/* Banner del inicio casi sin capa oscura: las líneas finas necesitan más sombra para leerse sobre cielos y camiones claros */
.hero-slide .banner-title-stack .tl { font-weight: 400; text-shadow: 0 1px 2px rgba(0,0,0,1), 0 0 6px rgba(0,0,0,.9), 0 2px 14px rgba(0,0,0,.9), 0 0 32px rgba(0,0,0,.65); }
.hero-slide .banner-title-stack .hl { text-shadow: 0 2px 4px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.6), 0 2px 22px rgba(0,0,0,.75); }
.hero-slide .banner-subtitle { font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,1), 0 0 6px rgba(0,0,0,.9), 0 2px 14px rgba(0,0,0,.85); }

/* Celular: letras finas del banner del inicio sin sombra, sin borde y sin mancha, y un poco más grandes */
@media (max-width: 768px) {
    .hero-slide .banner-title-stack .tl,
    .hero-slide .banner-subtitle {
        text-shadow: none;
        -webkit-text-stroke: 0;
    }
    .hero-slide .banner-subtitle { font-size: 1.06rem; font-weight: 600; }
    /* Solo en celular: capa oscura pareja sobre las fotos del banner para que las letras blancas contrasten (en PC no se toca) */
    .hero-slide::after {
        content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
        background: rgba(0, 0, 0, 0.30);
    }
    .hero-slide .container { position: relative; z-index: 2; }
}

/* Celular: menos espacio en blanco entre las secciones del inicio (PC no se toca) */
@media (max-width: 768px) {
    .welcome-section, .services-section, .gallery-section { padding-top: 32px !important; padding-bottom: 32px !important; }
    .cta-section { padding-top: 36px !important; padding-bottom: 36px !important; margin-top: 16px !important; }
    .welcome-section + .services-section, .services-section + .gallery-section { padding-top: 24px !important; }
    .section-header { margin-bottom: 24px !important; }
    .section-title { margin-bottom: 12px !important; }
    .section-subtitle { margin-top: 4px !important; }
}

/* Footer: logo en blanco (casilla en Configuración > Footer). Solo para logos de fondo transparente. */
.footer-logo-white img { filter: brightness(0) invert(1); }

/* Celular: espacio al final del footer para que el botón flotante de WhatsApp no tape la firma */
@media (max-width: 768px) {
    .site-footer { padding-bottom: 5.5rem; }
}

/* Video del banner del inicio (opcional por diapositiva): por defecto cubre toda la diapositiva, debajo del degradado */
.hero-slide .slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Lista desplegable de los formularios (igual que los demás campos) */
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: var(--font-size-base);
    font-family: inherit;
    background: #fff;
    transition: var(--transition-base);
}
.form-group select:focus { outline: none; border-color: var(--color-primary); }
.form-group.has-error select { border-color: #dc3545; }

/* Botón flotante de WhatsApp con texto (Admin > Configuración > Contacto > Texto del botón flotante) */
.whatsapp-float.has-label {
    width: auto;
    height: auto;
    padding: 12px 22px 12px 16px;
    gap: 10px;
    border-radius: 999px;
}
.whatsapp-float.has-label i { font-size: 1.7rem; }
.whatsapp-float .wa-label { color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.15; white-space: nowrap; }
@media (max-width: 480px) {
    .whatsapp-float.has-label { padding: 10px 16px 10px 12px; right: 12px; bottom: 14px; }
    .whatsapp-float.has-label i { font-size: 1.5rem; }
    .whatsapp-float .wa-label { font-size: .82rem; }
}

/* Servicios: indicador "+" sobre la foto y descripción dentro del visor al ampliar */
.svc-plus {
    position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
    background: #fff; color: #012770; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    transition: transform .3s ease, background .3s ease, color .3s ease; pointer-events: none;
}
.svc-photo-card:hover .svc-plus { transform: rotate(90deg); background: #c4000d; color: #fff; }
#galleryModal .gm-caption.has-desc {
    display: flex; flex-direction: column; gap: 6px; max-width: min(680px, 90vw);
    border-radius: 16px; padding: 14px 22px; max-height: 26vh; overflow: auto;
}
#galleryModal .gm-caption strong { font-size: 1.15rem; }
#galleryModal .gm-caption .gm-desc { display: block; font-weight: 400; font-size: .98rem; line-height: 1.55; letter-spacing: 0; color: rgba(255, 255, 255, .92); }
#galleryModal .gallery-modal-simple:has(.gm-caption.has-desc) .gallery-modal-img { max-height: 58vh; }

/* Enlace "Saltar al contenido" (teclado y lectores de pantalla) */
.skip-link {
    position: absolute; left: 12px; top: -64px; z-index: 2147483001; padding: 10px 16px; border-radius: 6px;
    background: #fff; color: #012770; font-weight: 700; text-decoration: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
