/* =================================================== */
/* ================== FUENTES ======================= */
/* =================================================== */
@font-face {
    font-family: 'Eastman Grotesque Alt Bold';
    src: url('../fuentes/Eastman-Grotesque-Alt-Bold-trial.otf') format('opentype');
}

/* =================================================== */
/* ================== ESTILOS BASE ================== */
/* =================================================== */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Eastman Grotesque Alt Bold', Arial, sans-serif;
}

/* =================================================== */
/* =============== BARRA LATERAL ==================== */
/* =================================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
}

.logo-container {
    width: 60%;
    margin-bottom: 30px;
    text-align: center;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.nav-central {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    display: block;
    width: 80%;
    padding: 14px 20px;
    text-align: center;
    background-color: #7e7e7e;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s;
}

.nav-btn:hover {
    background-color: #5a5a5a;
}

.contact-container {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.contact-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-item {
    margin: 4px 0;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.user-menu-container {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.cart-icon,
.login-icon {
    margin-bottom: 10px;
}

.cart-icon img,
.login-icon img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cart-icon img:hover,
.login-icon img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.user-name {
    font-weight: bold;
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s;
    font-size: 18px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    text-align: center;
    width: 80%;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.user-name:hover {
    background-color: #e9ecef;
    color: #7e7e7e;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    width: 80%;
    gap: 10px;
    margin-top: 10px;
}

.logout-btn {
    color: #333;
    text-decoration: none;
    padding: 12px 15px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.logout-btn:hover {
    background-color: #7e7e7e;
    color: white;
    transform: translateX(5px);
}

/* =================================================== */
/* =============== HEADER MOBILE ==================== */
/* =================================================== */
.header-mobile {
    display: none;
    background: #f4f4f4;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-mobile {
    display: none;
    flex-direction: column;
    background: #f4f4f4;
    padding: 15px;
    gap: 10px;
    width: 100%;
    align-items: center;
    animation: slideDown 0.3s ease forwards;
}

.menu-mobile.active {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================== */
/* ============= CONTENIDO PRINCIPAL ================ */
/* =================================================== */
.contenido-principal {
    margin-left: 280px;
    padding: 30px 20px;
    min-height: 100vh;
    background: url('../imagenes/servicios_img/fondo_servicios.jpg') center/cover fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* =================================================== */
/* =============== SERVICIOS STYLES ================= */
/* =================================================== */
.introduccion-servicios {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 15px;
    margin: 0 auto 40px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 1000px;
    box-sizing: border-box;
}

.introduccion-servicios h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Eastman Grotesque Alt Bold', Arial, sans-serif;
    line-height: 1.2;
}

.introduccion-servicios p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    width: 90%;
    max-width: 1000px;
}

.servicio-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease forwards;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.servicio-imagenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    background: rgba(248, 249, 250, 0.7);
}

.servicio-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    border: 2px solid transparent;
}

.servicio-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    border-color: #7e7e7e;
}

.servicio-info {
    padding: 25px;
}

.servicio-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: 'Eastman Grotesque Alt Bold', Arial, sans-serif;
    line-height: 1.3;
}

.servicio-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'OpenSauceOne-Regular', Arial, sans-serif;
}

/* Colores diferenciados para cada servicio */
.servicios-grid .servicio-card:nth-child(1) .servicio-info h3 {
    color: #3498db;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.servicios-grid .servicio-card:nth-child(2) .servicio-info h3 {
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
    padding-left: 15px;
}

.servicios-grid .servicio-card:nth-child(3) .servicio-info h3 {
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
}

.servicios-grid .servicio-card:nth-child(4) .servicio-info h3 {
    color: #9b59b6;
    border-left: 4px solid #9b59b6;
    padding-left: 15px;
}

.servicios-grid .servicio-card:nth-child(5) .servicio-info h3 {
    color: #f39c12;
    border-left: 4px solid #f39c12;
    padding-left: 15px;
}

.servicios-grid .servicio-card:nth-child(6) .servicio-info h3 {
    color: #1abc9c;
    border-left: 4px solid #1abc9c;
    padding-left: 15px;
}

.servicios-grid .servicio-card:nth-child(7) .servicio-info h3 {
    color: #34495e;
    border-left: 4px solid #34495e;
    padding-left: 15px;
}

/* =================================================== */
/* =============== OVERLAY IMÁGENES ================= */
/* =================================================== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 280px;
    width: calc(100% - 280px);
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicio-card:nth-child(1) {
    animation-delay: 0.1s;
}

.servicio-card:nth-child(2) {
    animation-delay: 0.2s;
}

.servicio-card:nth-child(3) {
    animation-delay: 0.3s;
}

.servicio-card:nth-child(4) {
    animation-delay: 0.4s;
}

.servicio-card:nth-child(5) {
    animation-delay: 0.5s;
}

.servicio-card:nth-child(6) {
    animation-delay: 0.6s;
}

.servicio-card:nth-child(7) {
    animation-delay: 0.7s;
}

/* =================================================== */
/* ============= BOTÓN DE WHATSAPP ================== */
/* =================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
}

/* =================================================== */
/* =============== RESPONSIVIDAD ==================== */
/* =================================================== */
@media (max-width: 1200px) {
    .contenido-principal {
        margin-left: 0;
        padding: 20px;
    }

    .overlay {
        left: 0;
        width: 100%;
    }

    .servicios-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }

    .introduccion-servicios {
        padding: 25px;
        margin: 0 0 30px 0;
    }

    .introduccion-servicios h1 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .header-mobile {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .contenido-principal {
        margin-left: 0;
        padding: 20px;
        background-attachment: scroll;
    }

    .overlay {
        left: 0;
        width: 100%;
        background: none;
    }

    .overlay img {
        max-width: 95%;
        max-height: 85%;
    }
}

@media (max-width: 768px) {
    .contenido-principal {
        padding: 15px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .introduccion-servicios {
        padding: 20px;
        margin: 0 0 25px 0;
        width: 100%;
    }

    .introduccion-servicios h1 {
        font-size: 1.7rem;
    }

    .introduccion-servicios p {
        font-size: 1rem;
        text-align: left;
    }

    .servicio-info {
        padding: 20px;
    }

    .servicio-info h3 {
        font-size: 1.2rem;
    }

    .servicio-img {
        height: 110px;
    }
}

@media (max-width: 480px) {
    .contenido-principal {
        padding: 10px;
    }

    .servicios-grid {
        gap: 15px;
    }

    .introduccion-servicios {
        padding: 15px;
    }

    .introduccion-servicios h1 {
        font-size: 1.4rem;
    }

    .introduccion-servicios p {
        font-size: 0.9rem;
    }

    .servicio-info {
        padding: 15px;
    }

    .servicio-info h3 {
        font-size: 1.1rem;
    }

    .servicio-img {
        height: 90px;
    }
}