/* Variables globales */
:root {
    --primary-color: #1E8449;
    --secondary-color: #27AE60;
    --dark-color: #2C3E50;
    --light-color: #f8f9fa;
    --transition-default: all 0.3s ease;
    --box-shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --box-shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 15px 30px rgba(0,0,0,0.1);
}

/* Reset y estilos base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Sección de títulos */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Utilidades */
.text-primary {
    color: var(--primary-color);
}

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

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: var(--box-shadow-sm);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

.navbar-collapse {
    flex-grow: 0;
}

/* Sección Hero */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Componentes de navegación */
.navbar {
    background-color: var(--light-color);
    box-shadow: var(--box-shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: auto;
    width: 150px;
    max-height: 70px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 18px;
    margin: 0 15px;
    padding: 10px 5px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    transition: var(--transition-default);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.btn-cita {
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: var(--transition-default);
    display: inline-block;
}

.btn-cita:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-cita {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-cita:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    color: white;
}

/* Estilos para la sección de Horario - Estilo Minimalista */
.horario {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.horario-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.horario-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px;
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.horario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.horario-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.horario-header i {
    font-size: 28px;
    color: var(--primary-color);
    margin-right: 15px;
}

.horario-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.horario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.horario-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.horario-day:hover:not(.weekend) {
    background-color: #f8f9fa;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.day-name {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-size: 15px;
}

.horario-hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.horario-hours span {
    font-size: 13px;
    margin-bottom: 5px;
    color: #6c757d;
    text-align: center;
    padding: 3px 8px;
    border-radius: 20px;
    background-color: #f8f9fa;
    width: 100%;
}

.closed {
    color: #adb5bd;
    text-decoration: line-through;
    opacity: 0.7;
}

.weekend {
    background-color: #f8f9fa;
    border-radius: 10px;
    opacity: 0.8;
}

.weekend .day-name {
    color: #adb5bd;
}

@media (max-width: 768px) {
    .horario-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .horario-day {
        margin-bottom: 10px;
    }
}

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

/* Tarjetas de servicios */
.service-preview {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: visible;
    display: block;
    visibility: visible;
    opacity: 1;
}

.service-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 132, 73, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(30, 132, 73, 0.05) 100%);
    z-index: 0;
}

.service-preview .container {
    position: relative;
    z-index: 1;
}

.service-preview .card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    background-color: white;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: block;
    will-change: transform, box-shadow;
}

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

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

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

.service-preview .card-body {
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background-color: white;
}

.service-preview .card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 80%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.service-preview .card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.service-preview .icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background-color: rgba(30, 132, 73, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(30, 132, 73, 0.1);
}

.service-preview .icon-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
    border-radius: 50%;
}

.service-preview .card:hover .icon-container {
    background-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(30, 132, 73, 0.25);
}

.service-preview .card:hover .icon-container::after {
    opacity: 1;
    transform: scale(1);
}

.service-preview .icon-container i {
    font-size: 40px;
    color: var(--primary-color);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.service-preview .card:hover .icon-container i {
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.service-preview h3 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.service-preview h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.service-preview .card:hover h3 {
    color: var(--primary-color);
}

.service-preview .card:hover h3::after {
    width: 70%;
}

.service-preview p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.7;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.service-preview .card:hover p {
    transform: translateY(5px);
}

.service-preview .service-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-preview .card:hover .service-btn {
    bottom: 20px;
    opacity: 1;
}

.service-preview .service-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.service-preview .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
}

/* Animaciones para las tarjetas de servicios */
.service-preview .card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.service-preview .card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-preview .card.card-hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-preview .card:hover .icon-container {
    background-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(30, 132, 73, 0.25);
}

.service-preview .card:hover .icon-container i {
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.service-preview .card:hover h3 {
    color: var(--primary-color);
}

.service-preview .card:hover .service-btn {
    opacity: 1;
    transform: translateY(0);
}

.service-preview .service-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

.service-preview .service-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Animación para las partículas */
.particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* Estilos para el botón de servicio - diseño ultra-minimalista */
.service-link {
    display: block;
    margin-top: 15px;
    padding: 0;
    background-color: transparent;
    color: #888;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    border: none;
    transition: color 0.3s ease;
    text-align: center;
}

.service-link:hover,
.service-item:hover .service-link {
    color: var(--primary-color);
}

/* Sección Sobre Nosotros */
.about-section {
    padding: 80px 0;
}

.about-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: 20px;
}

.about-content h2 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Sección de Valores */
.values-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.value-icon {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
    min-width: 25px;
}

.value-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-content p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Sección de Misión y Visión */
.mission-vision-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-default);
}

.mission-vision-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.mission-vision-box h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.mission-vision-box h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.mission-vision-box p {
    color: #6c757d;
    line-height: 1.8;
}

/* Media Queries */
@media (max-width: 992px) {
    .nav-link {
        margin: 5px 0;
        text-align: center;
    }
    
    .navbar-collapse {
        padding: 15px 0;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .about-image-container {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-preview .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
}

/* Optimizaciones para rendimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Accesibilidad - alto contraste */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #0E6431;
        --secondary-color: #158A48;
    }
    
    .btn-cita {
        border: 2px solid #000;
    }
}

/* Impresión */
@media print {
    .navbar, 
    .hero, 
    .btn-cita,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
}

/* Estilos para la sección de instalaciones */
#instalaciones {
    background-color: #f9f9f9;
    padding: 80px 0;
}

#instalaciones .section-title {
    margin-bottom: 15px;
}

#instalaciones .small {
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
}

#instalaciones .section-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}

/* Nueva galería minimalista */
.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    height: 0;
    padding-bottom: 75%; /* Mantiene la relación de aspecto 4:3 */
    background-color: #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 15px 15px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay span {
    display: block;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

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

/* Media queries para la galería */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-gap: 15px;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    }
    
    .gallery-overlay span {
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        grid-gap: 15px;
    }
}

/* Estilos para Fancybox */
.fancybox__container {
    z-index: 9999 !important;
}

.fancybox__backdrop {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.fancybox__toolbar {
    background-color: transparent !important;
}

/* Estilos para la sección de reseñas */
#reviews {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.reviews-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reviews-track {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.reviews-track::-webkit-scrollbar {
    height: 8px;
}

.reviews-track::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.reviews-track::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.review-card {
    flex: 0 0 350px;
    max-width: 350px;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

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

.review-quote {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.review-text {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
}

.review-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.review-author-info h5 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.review-stars {
    color: #ffc107;
    font-size: 14px;
}

.reviews-controls {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Estilos para el botón de reseñas de Google */
.btn-google-reviews {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-google-reviews:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.btn-google-reviews i {
    color: #4285F4;
    font-size: 18px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.btn-google-reviews:hover i {
    color: white;
}

/* Estilos para la sección de contacto */
.contact-info {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

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

.form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer - Estilo mejorado */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1e2a38 100%);
    color: #f8f9fa;
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-about {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(1.1);
}

.footer-about p {
    color: #adb5bd;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.footer-title {
    color: white;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
    font-size: 12px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    margin-bottom: 20px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.footer-contact-text {
    color: #adb5bd;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #adb5bd;
    font-size: 14px;
}

.footer-bottom-links {
    margin-top: 10px;
}

.footer-bottom-links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-title {
        font-size: 18px;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
}

/* Estilos para la sección de servicios principales */
#servicios {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%231e8449" fill-opacity="0.03" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.5;
    z-index: 0;
}

#servicios .container {
    position: relative;
    z-index: 1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

.service-item:hover::after {
    transform: scaleX(1);
}

.service-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.service-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-item:hover .service-img::after {
    opacity: 1;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    transition: color 0.3s ease;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.service-item:hover .service-title {
    color: var(--primary-color);
}

.service-item:hover .service-title::after {
    width: 80px;
}

.service-text {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    margin-top: auto;
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-right: 25px;
    transition: all 0.3s ease;
    opacity: 0.8;
    text-align: center;
}

.service-link::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    right: calc(50% - 50px);
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.service-item:hover .service-link {
    color: var(--secondary-color);
    padding-right: 30px;
    opacity: 1;
}

.service-item:hover .service-link::after {
    transform: translate(5px, -50%);
}

.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.service-item:hover .service-icon {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .service-img {
        height: 180px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-title {
        font-size: 20px;
    }
}

/* Sección de servicios - estilos adicionales para garantizar visibilidad */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    font-weight: 700;
    display: block;
    visibility: visible;
    opacity: 1;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* Garantizar visibilidad de elementos */
.service-preview, 
.service-preview .container,
.service-preview .row,
.service-preview .card,
.service-preview h2,
.service-preview h3,
.service-preview p,
.service-preview .icon-container,
.service-preview .service-link {
    visibility: visible !important;
    opacity: 1 !important;
    display: block;
}

.service-preview .row {
    display: flex;
}

.service-preview .card {
    display: flex;
    flex-direction: column;
}

.service-preview .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-preview .service-link {
    display: inline-block;
    margin-top: auto;
}

/* Estilos para la tarjeta de ubicación */
.location-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.location-image {
    position: relative;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-card:hover .location-overlay {
    opacity: 1;
}

.location-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.location-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    color: white;
}

.location-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.location-info h4 {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-info h4 i {
    color: var(--primary-color);
}

.location-info p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.location-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-directions, .btn-call {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-directions {
    background-color: #f0f0f0;
    color: var(--dark-color);
}

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

.btn-directions:hover {
    background-color: #e0e0e0;
    color: var(--primary-color);
}

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

@media (max-width: 768px) {
    .location-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
    }
    
    .location-button {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .location-actions {
        flex-direction: column;
    }
}

/* Estilos para la nueva sección de contacto */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background-color: transparent;
    perspective: 1000px;
    height: 200px;
    border-radius: 12px;
    cursor: pointer;
}

.contact-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.contact-card:hover .contact-card-inner {
    transform: rotateY(180deg);
}

.contact-card-front, .contact-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.contact-card-front {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.contact-card-back {
    background-color: white;
    color: var(--dark-color);
    transform: rotateY(180deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    height: 60px;
    width: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.contact-card-front h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-card-back p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white;
}

/* Estilos para la imagen del taller */
.workshop-image-container {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.workshop-image {
    position: relative;
    overflow: hidden;
}

.workshop-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

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

.workshop-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 30px 30px;
    color: white;
    transition: all 0.3s ease;
}

.workshop-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
}

.workshop-overlay p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
}

.workshop-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.workshop-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(17px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.workshop-image:hover .workshop-overlay h3,
.workshop-image:hover .workshop-overlay p,
.workshop-image:hover .workshop-overlay .workshop-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive para la sección de contacto */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .workshop-image img {
        height: 300px;
    }
    
    .workshop-overlay {
        padding: 30px 20px 20px;
    }
    
    .workshop-overlay h3 {
        font-size: 1.5rem;
    }
    
    .workshop-overlay p {
        font-size: 1rem;
    }
    
    /* Mostrar animación en móvil sin hover */
    .workshop-overlay h3,
    .workshop-overlay p,
    .workshop-overlay .workshop-btn {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el nuevo botón minimalista */
.service-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    padding: 0;
    margin-top: auto;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

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

.service-action:hover {
    color: var(--primary-color);
}

.service-action:hover::after {
    width: 100%;
}

.service-action i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.service-action:hover i {
    transform: translateX(4px);
}

/* Animación de pulso para el icono */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.service-action:hover i.fa-arrow-right {
    animation: pulse 1s infinite;
}