:root {
    --primary: #9b2d43;
    --primary-light: rgba(155, 45, 67, 0.1);
    --secondary: #b03a55;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --gray-custom: #f3f4f6;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    color: #4a4a4a;
    background-color: var(--light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-logo {
    font-family: 'Outfit', sans-serif;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

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

/* -------------------------------------------------------
   TIPOGRAFÍA — Clases de ayuda para el espaciado de letras
   y la altura de línea usadas en títulos y subtítulos
------------------------------------------------------- */
.tracking-wide {
    letter-spacing: 2px;
}

.line-height-lg {
    line-height: 1.8;
}

/* -------------------------------------------------------
   CARGADOR (SPINNER) — Pantalla de carga que aparece mientras
   la página se está inicializando. Se oculta automáticamente.
------------------------------------------------------- */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* -------------------------------------------------------
   BOTONES — Estilos generales para todos los botones del sitio.
   Incluye bordes redondeados, fuente Outfit y transición suave.
------------------------------------------------------- */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 45, 67, 0.3);
}

.btn-outline-light:hover {
    color: var(--primary);
    background-color: white;
    transform: translateY(-2px);
}

.btn-link-custom {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-link-custom:hover {
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.btn-link-custom i {
    transition: transform 0.3s;
}

.btn-link-custom:hover i {
    transform: translateX(5px);
}

/* -------------------------------------------------------
   BARRA SUPERIOR (TOPBAR) — Franja oscura en la parte alta
   de la página que muestra la sede y los contactos de WhatsApp.
------------------------------------------------------- */
.topbar-bg {
    background-color: var(--dark);
    font-size: 14px;
}

/* -------------------------------------------------------
   BARRA DE NAVEGACIÓN — Menú principal con efecto de vidrio
   (glassmorphism). Se vuelve pegajosa (sticky) al hacer scroll.
------------------------------------------------------- */
.glass-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.glass-navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar-brand .brand-logo {
    font-size: 3rem;
}

.brand-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

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

/* -------------------------------------------------------
   SECCIÓN PRINCIPAL (HERO) — Banner de bienvenida a pantalla
   completa con imagen de fondo, superposición oscura y texto
   animado. La imagen se configura aquí con background.
------------------------------------------------------- */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: url('../imagenes/oficina.png') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.8) 50%, rgba(26, 26, 26, 0.4) 100%);
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-custom {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

/* -------------------------------------------------------
   ANIMACIONES — Clases CSS para animar elementos al cargar
   la página. slideInUp: sube desde abajo. delay-1/2/3: demoras
   escalonadas para que los elementos aparezcan en secuencia.
------------------------------------------------------- */
.slide-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------
   UTILIDAD DE ESPACIADO — Clase .py-6 agrega padding vertical
   de 6rem (aprox. 96px) arriba y abajo de una sección.
------------------------------------------------------- */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* -------------------------------------------------------
   PANELES DE VIDRIO (GLASS PANELS) — Tarjetas blancas con
   bordes suaves, sombra y esquinas redondeadas. Se usan en
   las tarjetas de servicios, contacto y badge de experiencia.
------------------------------------------------------- */
.glass-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* -------------------------------------------------------
   SECCIÓN NOSOTROS — Contenedor de las dos imágenes superpuestas
   del lado izquierdo. about-img-1 es la imagen grande (fondo)
   y about-img-2 es la imagen pequeña encimada (primer plano).
   La imagen se define con background: url(...) en cada clase.
------------------------------------------------------- */
.about-image-wrapper {
    position: relative;
    height: 500px;
}

.about-img-1 {
    position: absolute;
    width: 75%;
    height: 80%;
    top: 0;
    left: 0;
    background: url('../imagenes/10.jpeg') center/cover;
    border-radius: 16px;
    z-index: 1;
}

.about-img-2 {
    position: absolute;
    width: 60%;
    height: 60%;
    bottom: 0;
    right: 0;
    background: url('../imagenes/23.jpeg') center/cover;
    border-radius: 16px;
    z-index: 2;
    border: 10px solid var(--light);
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

    100% {
        transform: translateY(0px);
    }
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.feature-item:hover .icon-box {
    background-color: var(--primary) !important;
    color: white !important;
    transform: rotateY(180deg);
}

/* -------------------------------------------------------
   SECCIÓN SERVICIOS — Tarjetas de cada servicio ofrecido.
   Al hacer hover, la tarjeta sube y aparece una línea bordó
   en la parte superior. El ícono también cambia de color.
------------------------------------------------------- */
.service-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
}

.service-card:hover .service-icon i {
    color: white !important;
    transform: scale(1.1);
}

/* -------------------------------------------------------
   SECCIÓN GALERÍA DE FOTOS — Grilla de 3 columnas que muestra
   las imágenes de los trabajos realizados. Cada foto tiene un
   efecto hover que oscurece la imagen y muestra un ícono de lupa.
   Para agregar fotos: copiá la imagen a la carpeta "imagenes/"
   y actualizá el src="imagenes/tu-foto.jpg" en el HTML.
------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(155, 45, 67, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 36px;
    transform: scale(0.7);
    transition: transform 0.4s ease;
}

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

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

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

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

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------
   SECCIÓN CONTACTO — Panel izquierdo con fondo degradado bordó
   que muestra la información de contacto. Incluye un patrón
   de puntos decorativo semitransparente en el fondo.
   El formulario se estiliza con bordes y foco en color primario.
------------------------------------------------------- */
.contact-info-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.contact-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.5;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(155, 45, 67, 0.25);
}

/* -------------------------------------------------------
   PIE DE PÁGINA (FOOTER) — Estilo de los enlaces y botones
   de redes sociales del pie. Los enlaces se desplazan hacia
   la derecha con hover. Los botones sociales cambian a bordó.
------------------------------------------------------- */
.footer-link {
    text-decoration: none;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}

.btn-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-social:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white !important;
    transform: translateY(-3px);
}

/* -------------------------------------------------------
   BOTÓN VOLVER ARRIBA — Botón circular fijo en la esquina
   inferior derecha. Se muestra u oculta según el scroll
   mediante jQuery en main.js. Tiene animación flotante.
------------------------------------------------------- */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    animation: float 2s infinite ease-in-out;
}

/* -------------------------------------------------------
   BOTONES FLOTANTES DE WHATSAPP — Dos íconos circulares
   verdes fijos en la esquina inferior izquierda, uno por
   cada contacto (Gerardo y Martín). Tienen animación de
   latido (pulse). Al hacer hover aparece el nombre en un
   globo tooltip con flecha apuntando al botón.
------------------------------------------------------- */
.whatsapp-floating-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    animation: pulse 2s infinite;
}

.whatsapp-btn:nth-child(2) {
    animation-delay: 1s;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    left: 75px;
    background-color: white;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* -------------------------------------------------------
   DISEÑO RESPONSIVO (MÓVIL Y TABLET) — Ajustes específicos
   para celulares y tablets (iOS, Android, iPad) para asegurar
   que la página se vea perfecta en cualquier pantalla.
------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 100px 0 60px 0;
    }

    .display-1 {
        font-size: 2.8rem;
    }

    .about-image-wrapper {
        height: 380px;
        margin-bottom: 30px;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        padding: 20px;
        margin-top: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin: 0;
    }

    .whatsapp-floating-container {
        bottom: 20px;
        left: 20px;
        gap: 10px;
    }

    .whatsapp-btn {
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .whatsapp-tooltip {
        font-size: 12px;
        padding: 4px 10px;
        left: 62px;
        opacity: 1;
        visibility: visible;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575.98px) {
    .display-1 {
        font-size: 2.1rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .hero-content .d-flex {
        flex-direction: column;
    }

    .hero-content .btn {
        width: 100%;
        text-align: center;
    }

    .about-image-wrapper {
        height: 300px;
    }

    .experience-badge {
        padding: 12px 18px;
        bottom: 10px;
        left: 10px;
    }

    .experience-badge h2 {
        font-size: 2rem;
    }

    .py-6 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}