:root {
    --primary-color: #ffffff;
    --text-color: #333333;
    --accent-color: #00ced1;
    /* Cyan/Teal */
    --accent-dark: #008b8b;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Seguridad global de imágenes */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    /* Permitir clicks (para lightbox/enlaces) pero no arrastrar */
}

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

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

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
}

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

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

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

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

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

.btn-secondary:hover {
    opacity: 0.8;
}

/* Header */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

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

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.btn-quote {
    background-color: var(--accent-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    height: 85vh;
    position: relative;
    overflow: hidden;
    background-color: #333;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    color: white;
    z-index: 20;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.5s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    /* Ajustado para que no sea tan grande */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .highlight {
    color: var(--accent-color);
    font-style: italic;
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Stats (Progress Bars) */
.stats-section {
    padding: 5rem 2rem;
    background-color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: left;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.stat-percentage {
    color: var(--accent-color);
}

.progress-container {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    /* JS animará esto */
    background-color: var(--accent-color);
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    border-radius: 5px;
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Process (Timeline) */
.process-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
    overflow: hidden;
    /* Para animaciones que vienen de los lados */
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
    padding: 0 20px;
}

/* Línea central */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    /* Inicio invisible */
    transition: all 0.8s ease;
}

/* Items impares a la izquierda, pares a la derecha */
.timeline-item:nth-child(odd) {
    left: 0;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Círculos en la línea */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--accent-dark);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-item:hover::after {
    background-color: var(--accent-color);
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--text-color);
}

/* Gallery */
.gallery-section {
    padding: 5rem 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 3rem;
    margin-top: -2rem;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    /* Más alto */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

.center-btn {
    text-align: center;
}

/* Footer Updated */
.main-footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 2rem 0 3rem;
    /* Menos padding top, más padding bottom para el copyright */
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    /* Reducido de 1.5rem */
    margin-bottom: 1.5rem;
    /* Reducido de 2rem */
}

.footer-logo {
    width: 100px;
    /* Un poco más pequeño para ser más sutil */
    filter: brightness(0) invert(1);
}

.footer-compact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    /* Reducido de 1rem */
    font-size: 0.85rem;
    /* Un toque más pequeño */
    color: #aeaeae;
}

.footer-contact-info.inline,
.social-icons.inline {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
}

.footer-slogan {
    font-size: 0.95rem;
    color: #ccc;
    font-style: italic;
    margin: 0;
}

.separator {
    color: var(--accent-color);
    font-weight: 300;
}

/* Ocultar separator en movil si es necesario */
@media (max-width: 768px) {
    .footer-compact-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hidden-mobile {
        display: none;
    }
}



/* Services Module */
.section-padding {
    padding: 6rem 0;
}

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

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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


.category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.service-image {
    position: relative;
    /* Asegurar posicionamiento relativo para el tag absoluto */
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Cuadrado perfecto */
    overflow: hidden;
}


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

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

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-excerpt {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limitar a 3 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-excerpt.expanded {
    -webkit-line-clamp: unset;
    /* Mostrar todo */
}

.read-more-btn {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    text-decoration: underline;
}

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


.service-footer {
    margin-top: auto;
}

.share-buttons {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.share-label {
    font-size: 0.85rem;
    color: #888;
    margin-right: 0.5rem;
}

.share-buttons {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.share-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #555;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.share-btn.whatsapp:hover {
    background-color: #25D366;
}

.share-btn.facebook:hover {
    background-color: #3b5998;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Responsive */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Timeline Responsive */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 15px;
        /* Ajustar círculo */
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        transform: translateX(0);
        /* Reset transform inicial para móvil */
        opacity: 0;
    }

    .timeline-item.visible {
        transform: translateX(0);
        opacity: 1;
    }

    /* Hide slider arrows on mobile */
    .slider-btn {
        display: none;
    }

    /* Fix text overlap in gallery section */
    .section-subtitle {
        margin-top: 0;
        margin-bottom: 2rem;
    }
}