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

:root {
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --dark-color: #000000;
    --light-gray: #f3f4f6;
    --medium-gray: #000000;
    --white: #ffffff;
    --black: #000000;
    --success-color: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.btn-outline-dark {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-outline-dark:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
}

.logo img {
    height: 5rem;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 12rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--dark-color);
    border-bottom: 1px solid var(--light-gray);
}

.mobile-dropdown-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--dark-color);
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
}

.mobile-dropdown-menu {
    display: none;
    padding-left: 1rem;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--medium-gray);
}

.mobile-cta {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-content {
    max-width: 48rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-buttons-2 {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--medium-gray);
    max-width: 48rem;
    margin: 0 auto;
}

/* Services Featured */
.services-featured {
    padding: 4rem 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: justify
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

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

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Why Choose Us */
.why-choose-us {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.features-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
     gap: 0.6rem;

}

.feature-item {
    text-align: center;
    padding: 1rem;
}
.feature-item0 {
    text-align: justify;
}
.feature-item1 p{
    text-align: justify;
}
.feature-item0 h3 {
    text-align: center;
}
.feature-item1 h3 {
    text-align: center;
}

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

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

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--medium-gray);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.cta-text p {
    font-size: 1.125rem;
    color: rgba(0, 0, 0, 0.8);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: var(--primary-color);
}

.testimonial-card p {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

/* Quick Contact */
.quick-contact {
    padding: 4rem 0;
    background-color: var(--dark-color);
    color: var(--white);
     display: grid;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.contact-item h3 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-form-container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-form-container h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
}

.form-group1 input,
.form-group1 textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: rgb(34, 34, 34);
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: gray;
}

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

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    text-align: justify;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

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

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

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

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-logo2{
    display: flex;
    align-items: right;
    width: 7rem;
    height: 7rem;

}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 4rem;
    right: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    width: 16rem;
    display: none;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tooltip-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.tooltip-close {
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    font-size: 1rem;
}

.whatsapp-tooltip p {
    color: var(--medium-gray);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.whatsapp-btn {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--success-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .services-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-button {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-tooltip {
        width: 14rem;
    }
}

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

.service-card,
.feature-item,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}
/* Page-specific styles */

/* Page Hero */
.page-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.page-hero .hero-background {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
/*     object-position: top; */
    filter: brightness(0.4);
}

.page-hero .hero-content {
    max-width: 48rem;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Main Services */
.main-services {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: justify;
}

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

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-content .service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-content .service-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.service-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: justify;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.service-features i {
    color: var(--primary-color);
    font-size: 1rem;
}

.service-image {
    position: relative;
    height: 35rem;
    /* border-radius: var(--border-radius); */
    overflow: hidden;
}

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

.service-image2 {
    position: relative;
    height: 35rem;
    /* border-radius: var(--border-radius); */
    overflow: hidden;
}

.service-image2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Additional Services */
.additional-services {
    padding: 4rem 0;
    background-color: var(--light-gray);
}
.additional-services1 {
    padding: 4rem 0;
    background-color: var(--light-gray);
}
.additional-services p{
    text-align: justify;
}

/* Active navigation state */
.nav-link.active {
    color: var(--primary-color);
}

/* Responsive adjustments for pages */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-detail.reverse {
        direction: ltr;
    }
    
    .service-image {
        height: 20rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 30vh;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .service-content h2 {
        font-size: 1.5rem;
    }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.carousel-container {
    max-width: 600px;
    position: relative;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
    display: none;
    width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 1.2em;
    border-radius: 0 0 8px 8px;
}

/* Flechas de navegación */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Animación de desvanecimiento */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* --- Nuevos estilos para miniaturas --- */
.thumbnail-container {
    text-align: center;
    padding: 10px 0;
    background-color: #f1f1f1;
    border-radius: 0 0 8px 8px;
    display: flex; /* Para alinear las miniaturas horizontalmente */
    justify-content: center; /* Centrar las miniaturas */
    gap: 10px; /* Espacio entre miniaturas */
    overflow-x: auto; /* Permite desplazamiento horizontal si hay muchas miniaturas */
    white-space: nowrap; /* Evita que las miniaturas salten de línea */
    padding-bottom: 5px; /* Pequeño ajuste para el scrollbar */
}

.thumbnail {
    width: 80px; /* Ancho de las miniaturas */
    height: 50px; /* Alto de las miniaturas */
    object-fit: cover; /* Recorta la imagen para que quepa sin distorsionarse */
    cursor: pointer;
    border: 2px solid transparent; /* Borde transparente por defecto */
    border-radius: 5px;
    opacity: 0.6; /* Un poco más oscuras cuando no están activas */
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.thumbnail:hover {
    opacity: 1; /* Más claras al pasar el ratón */
}

/* Estilo para la miniatura activa */
.thumbnail.active {
    border-color: #717171; /* Borde gris cuando está activa */
    opacity: 1; /* Opacidad completa cuando está activa */
}
