/* COLORES Y VARIABLES PRINCIPALES */
:root {
    --primary-color: #ff7700;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #495057;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* RESET Y TIPOGRAFÍA GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 15px 0;
}

h1, h2, h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background: #e76c00;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

/* HEADER Y MENÚ PRINCIPAL */
header {
    background: #fff;
    color: var(--dark-color);
    padding: 4px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    float: left;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

header nav {
    float: right;
}

header nav ul {
    list-style: none;
}

header nav ul > li {
    display: inline-block;
    margin-left: 25px;
    vertical-align: middle;
}

.dropdown-menu li {
    display: block;
    margin: 0 !important;
    width: 100%;
}

header nav ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

.logopic {
    max-width: 300px;
    height: auto;
    width: 100%;
    display: block;
}

/* HERO / SLIDER PRINCIPAL */
#hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--dark-color);
}

.slider-container {
    display: flex;
    transition: transform 0.8s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.slider-nav-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 2;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* SECCIONES GENERALES Y GRIDS */
.section-padding {
    padding: 20px 0;
    text-align: center;
}

.section-primary {
    background: #fff;
}

.section-secondary {
    background: var(--light-color);
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 50px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.172);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.grid-item p {
    font-size: 1.1rem;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.325);
}

/* SECCIÓN PERFORACIÓN */
#perforacion .container {
    padding-top: 20px;
    padding-bottom: 50px;
}

.grid-2-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
    margin-bottom: 60px;
}

@media (min-width: 992px) {
    .grid-2-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.perforacion-content h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.perforacion-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.perforacion-image-wrapper {
    text-align: center;
}

.perforacion-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

.machinery-sale {
    text-align: center;
    margin-bottom: 60px;
}

.machinery-sale h3 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.machinery-sale .grid-item h4 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.machinery-sale .grid-item p {
    font-size: 1rem;
}

.call-to-action-text {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.quote-button-container {
    margin-top: 40px;
}

.quote-button-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.btn-prominent {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 7px;
}

/* TESTIMONIOS */
#testimonials .testimonial-item {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

#testimonials .testimonial-item p {
    font-style: italic;
    margin-bottom: 10px;
}

#testimonials .testimonial-item .author {
    font-weight: bold;
    color: var(--primary-color);
}

/* ANIMACIONES SCROLL INDEX.HTML */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-section,
.grid-item,
.testimonial-item,
#featured-services .service-block {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.animate,
.grid-item.animate,
.testimonial-item.animate,
#featured-services .service-block.animate {
    animation: fadeInSlideUp 1s ease-out forwards;
    transition: none;
}

/* ANIMACIONES AL CARGAR PERFORACION.HTML Y CONTACTO.HTML */
@keyframes slideInFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.initial-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.perforacion-animate-on-load {
    animation: slideInFadeIn 0.8s ease-out forwards;
}

.section-title.perforacion-animate-on-load { animation-delay: 0.2s; }
.section-subtitle.perforacion-animate-on-load { animation-delay: 0.4s; }
.perforacion-overview.perforacion-animate-on-load { animation-delay: 0.6s; }
.perforacion-content h3.perforacion-animate-on-load { animation-delay: 0.8s; }
.perforacion-content p.perforacion-animate-on-load:nth-of-type(1) { animation-delay: 1s; }
.perforacion-content p.perforacion-animate-on-load:nth-of-type(2) { animation-delay: 1.2s; }
.perforacion-image.perforacion-animate-on-load { animation-delay: 1.4s; }
.machinery-sale.perforacion-animate-on-load { animation-delay: 1.6s; }
.machinery-sale h3.perforacion-animate-on-load { animation-delay: 1.8s; }
.machinery-sale p.perforacion-animate-on-load { animation-delay: 2.0s; }
.machinery-list .grid-item.perforacion-animate-on-load:nth-child(1) { animation-delay: 2.2s; }
.machinery-list .grid-item.perforacion-animate-on-load:nth-child(2) { animation-delay: 2.4s; }
.machinery-list .grid-item.perforacion-animate-on-load:nth-child(3) { animation-delay: 2.6s; }
.call-to-action-text.perforacion-animate-on-load { animation-delay: 2.8s; }
.quote-button-container.perforacion-animate-on-load { animation-delay: 3.0s; }
.btn-prominent.perforacion-animate-on-load { animation-delay: 3.2s; }

/* SECCIÓN CONTACTO */
#contact-form-section {
    padding-top: 1px;
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
        align-items: start;
    }
}

.contact-info-block,
.contact-form-block {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.253);
}

.contact-info-block h3,
.contact-form-block h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-info-block p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.contact-info-block p i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-info-block .social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.contact-info-block .social-icons a {
    color: var(--dark-color);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.contact-info-block .social-icons a:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-block .btn {
    width: auto;
    padding: 12px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form-block .btn:hover {
    background: #e66c00;
    transform: translateY(-2px);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
}

/* CALL TO ACTION (CTA) */
#cta {
    background: #d16200;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    z-index: 99999;
}

#cta h2 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

#cta p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* FOOTER */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
}

footer .footer-section {
    flex: 1;
    margin: 0 20px;
    min-width: 250px;
}

footer .footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

footer .footer-section p,
footer .footer-section ul li {
    font-size: 0.95rem;
    line-height: 1.8;
}

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

footer .footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

footer .social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: var(--primary-color);
}

footer .footer-bottom {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    header .logo,
    header nav {
        float: none;
        text-align: center;
    }

    header nav ul li {
        margin: 0 10px;
    }

    #hero {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    footer .footer-content {
        flex-direction: column;
        align-items: center;
    }

    footer .footer-section {
        margin-bottom: 30px;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-block,
    .contact-form-block {
        padding: 20px;
    }

    .contact-info-block .social-icons {
        justify-content: center;
    }
}

/* TÍTULOS POLÍTICA DE PRIVACIDAD */
.policy-section-title {
    font-size: 1.4em;
    color: #333;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3em;
}

/* SECCIÓN ALIMAK */
#alimak-intro .container {
    padding-top: 20px;
    padding-bottom: 50px;
}

.alimak-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
    margin-bottom: 60px;
}

@media (min-width: 992px) {
    .alimak-overview {
        grid-template-columns: 1fr 1fr;
    }
}

.alimak-content h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.alimak-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.alimak-image-wrapper {
    text-align: center;
}

.alimak-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

.alimak-advantages {
    text-align: center;
    margin-bottom: 60px;
}

.alimak-advantages .section-title {
    margin-bottom: 10px;
}

.alimak-advantages .section-subtitle {
    margin-bottom: 50px;
}

.alimak-advantages .grid-item h4 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.alimak-advantages .grid-item p {
    font-size: 1rem;
}

.alimak-animate-on-load {
    animation: slideInFadeIn 0.8s ease-out forwards;
}

.section-title.alimak-animate-on-load { animation-delay: 0.2s; }
.section-subtitle.alimak-animate-on-load { animation-delay: 0.4s; }
.alimak-overview.alimak-animate-on-load { animation-delay: 0.6s; }
.alimak-content h3.alimak-animate-on-load { animation-delay: 0.8s; }
.alimak-content p.alimak-animate-on-load:nth-of-type(1) { animation-delay: 1s; }
.alimak-content p.alimak-animate-on-load:nth-of-type(2) { animation-delay: 1.2s; }
.alimak-image.alimak-animate-on-load { animation-delay: 1.4s; }
.alimak-advantages.alimak-animate-on-load { animation-delay: 1.6s; }
.alimak-advantages h3.alimak-animate-on-load { animation-delay: 1.8s; }
.alimak-advantages .section-subtitle.alimak-animate-on-load { animation-delay: 2.0s; }
.alimak-advantages .grid-item.alimak-animate-on-load:nth-child(1) { animation-delay: 2.2s; }
.alimak-advantages .grid-item.alimak-animate-on-load:nth-child(2) { animation-delay: 2.4s; }
.alimak-advantages .grid-item.alimak-animate-on-load:nth-child(3) { animation-delay: 2.6s; }
.alimak-advantages .grid-item.alimak-animate-on-load:nth-child(4) { animation-delay: 2.8s; }
.alimak-advantages .grid-item.alimak-animate-on-load:nth-child(5) { animation-delay: 3.0s; }
.alimak-advantages .grid-item.alimak-animate-on-load:nth-child(6) { animation-delay: 3.2s; }
.quote-button-container.alimak-animate-on-load { animation-delay: 3.4s; }
.quote-button-container p.alimak-animate-on-load { animation-delay: 3.6s; }
.btn-prominent.alimak-animate-on-load { animation-delay: 3.8s; }

/* MENÚ DESPLEGABLE (DROPDOWN) */
header .container {
    overflow: visible;
}

header nav ul li.dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

header nav ul li.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 150%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--primary-color);
    padding: 8px 0;
    list-style: none;
    min-width: 240px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

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

.dropdown-menu li {
    margin-left: 0 !important;
}

.dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: var(--dark-color);
    font-weight: normal;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* SECCIÓN GEOLOGÍA */
.geology-section {
    padding: 20px 0 60px 0;
    text-align: center;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
    margin-top: 60px;
    scroll-margin-top: 120px;
}

.service-block.reverse-layout .geology-content-block {
    grid-area: 1 / 1 / 2 / 2;
}

.service-block.reverse-layout .geology-image-block {
    grid-area: 1 / 2 / 2 / 3;
}

.geology-image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.geology-image-block img:hover {
    transform: scale(1.03);
}

.geology-content-block h3 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.geology-content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.geology-cta {
    margin-top: 80px;
    padding: 40px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.geology-cta h3 {
    font-size: 2.2rem;
    color: var(--dark-color);
}

@media (max-width: 992px) {
    .service-block {
        grid-template-columns: 1fr;
    }
    .service-block.reverse-layout .geology-content-block,
    .service-block.reverse-layout .geology-image-block {
        grid-area: auto;
    }
    .geology-image-block {
        order: -1;
    }
    .service-block.reverse-layout .geology-image-block {
        order: -1;
    }
    .geology-content-block {
        text-align: center;
    }
}

.geology-animate-on-load {
    animation: slideInFadeIn 0.8s ease-out forwards;
}

.geology-section .section-title.geology-animate-on-load { animation-delay: 0.2s; }
.geology-section .section-subtitle.geologia-animate-on-load { animation-delay: 0.4s; }
.service-block:nth-of-type(1).geology-animate-on-load { animation-delay: 0.6s; }
.service-block:nth-of-type(2).geology-animate-on-load { animation-delay: 0.8s; }
.service-block:nth-of-type(3).geologia-animate-on-load { animation-delay: 1.0s; }
.geology-cta.geologia-animate-on-load { animation-delay: 1.2s; }

/* GRID 4 COLUMNAS PROPUESTA DE VALOR */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* SECCIÓN SERVICIOS DESTACADOS */
#featured-services {
    padding-top: 60px;
    padding-bottom: 30px;
    overflow: hidden;
}

#featured-services .service-block {
    margin-top: 0;
    margin-bottom: 100px;
}

#featured-services .service-block:last-child {
    margin-bottom: 0;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

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

/* TESTIMONIOS MEJORADOS */
#testimonials .container {
    max-width: 850px;
}

#testimonials .testimonial-item {
    background: #fff;
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    text-align: left;
}

#testimonials .testimonial-item::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.07);
    z-index: 0;
}

#testimonials .testimonial-item p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

#testimonials .testimonial-item .author {
    font-weight: bold;
    color: var(--dark-color);
    font-size: 1.1rem;
    text-align: right;
    position: relative;
    z-index: 1;
    font-style: normal;
}

/* SECCIÓN CLIENTES (LOGOS) */
#clients {
    padding: 60px 0;
    background-color: var(--light-color);
}

#clients .container {
    text-align: center;
}

#clients h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.client-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.client-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ANIMACIÓN HEADER AL CARGAR */
@keyframes dropDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header .logo,
header nav ul > li {
    opacity: 0;
    animation: dropDownFadeIn 0.5s ease-out forwards;
}

header .logo {
    animation-delay: 0.2s;
}

header nav ul > li:nth-child(1) {
    animation-delay: 0.35s;
}
header nav ul > li:nth-child(2) {
    animation-delay: 0.45s;
}
header nav ul > li:nth-child(3) {
    animation-delay: 0.55s;
}
header nav ul > li:nth-child(4) {
    animation-delay: 0.65s;
}

/* Animación para el botón de hamburguesa (de izquierda a derecha con rebote) */
@keyframes slideInFromLeftWithBounce {
    0% {
        opacity: 0;
        transform: translateX(-100px); /* Empieza fuera de la pantalla a la izquierda */
    }
    60% {
        opacity: 1;
        transform: translateX(4px); /* Se pasa un poco a la derecha */
    }
    80% {
        transform: translateX(-2px); /* Rebota ligeramente a la izquierda */
    }
    100% {
        opacity: 1; /* Asegura que permanezca visible al final */
        transform: translateX(0); /* Termina en su posición final */
    }
}



@media (max-width: 992px) {

    .hamburger-button {
        opacity: 0; /* Lo hacemos invisible para que la animación lo revele */
        transform: translateX(-100px); /* Lo posicionamos fuera de la pantalla */
        animation: slideInFromLeftWithBounce 0.8s ease-out forwards; /* Aplica la animación */
        animation-delay: 0.25s; /* Ajusta este retraso para que aparezca justo después o junto al logo */
    }

    /* Ajuste de los delays para una secuencia de carga más fluida en el header */
    header .logo {
        animation-delay: 0.1s; /* Que el logo aparezca muy rápido */
    }

        #hero {
        height: 400px; /* Ya lo tienes, solo para referencia */
        /* Aseguramos que no haya un padding-bottom extra que empuje la siguiente sección */
        padding-bottom: 0; 
    }

    /* Asegurar que la primera sección animada sea visible rápidamente */
    #services.section-padding {
        padding-top: 40px; /* Asegura un padding superior consistente */
    }

}

#featured-services .container {
    overflow: visible !important;
}
#featured-services .service-block {
    overflow: visible !important;
    position: relative;
}
#featured-services .service-block img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#featured-services .service-block img:hover {
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* ESTILOS PARA EL BOTÓN CTA EN EL MENÚ */
.cta-button {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    margin-left: 15px;
}

.cta-button:hover {
    background-color: #e66c00;
    color: #fff !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-button {
        display: block;
        margin: 10px auto;
        text-align: center;
    }
}

/* ZOOM IMÁGENES GEOLOGÍA */
.geology-section .container {
    overflow: visible !important;
}
.geology-image-block {
    overflow: visible !important;
    position: relative;
}
.geology-image-block img:hover {
    z-index: 2;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.menu-icon {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    vertical-align: middle;
}


/* ======================================== */
/* ESTILOS PARA BOTÓN FLOTANTE DE WHATSAPP  */
/* ======================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; 
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 1010; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; 
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    color: #FFF;
}


/* ======================================== */
/* ESTILOS PARA ENLACES DE CONTACTO         */
/* ======================================== */

a.contact-link-styleless {
    color: inherit; 
    text-decoration: none; 
    transition: color 0.3s ease;
}

a.contact-link-styleless:hover {
    color: var(--primary-color); 
    text-decoration: underline; 
}

/* =================================================================== */
/* ==   IMPLEMENTACIÓN PROFESIONAL MÓVIL (VERSIÓN FINAL DEFINITIVA) == */
/* =================================================================== */

/* --- Elementos móviles ocultos por defecto en escritorio --- */
.hamburger-button,
.mobile-sidenav,
.page-overlay {
    display: none;
}


/* Breakpoint principal para la transición a móvil */
@media (max-width: 992px) {

       h3 {
        font-size: 1.8rem !important; /* Ajuste de tamaño de fuente */
        text-align: center !important;
    }
    .call-to-action-text {
        font-size: 1.2rem !important; /* Ajuste de tamaño de fuente */
        text-align: center !important;
        font-weight: 600;

    }

.perforacion-overview.grid-2-columns {
    display: block; /* Asegura que los elementos se apilen */
}

.perforacion-overview .perforacion-content {
    text-align: left; /* Alinea el texto a la izquierda para una mejor lectura en móvil */
    padding-right: 0; /* Elimina el padding derecho innecesario en móvil */
    margin-bottom: 20px; /* Añade un espacio entre el texto y la imagen cuando se apilan */
}

.perforacion-overview .perforacion-image-wrapper {
    text-align: center; /* Centra la imagen en la versión móvil */
}

.perforacion-overview .perforacion-image {
    max-width: 100%; /* Asegura que la imagen no exceda el ancho del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
}

.perforacion-overview .perforacion-content h3 {
    font-size: 1.8rem; /* Reduce ligeramente el tamaño del título para móvil si es necesario */
    margin-bottom: 10px;
}

.perforacion-overview .perforacion-content p {
    font-size: 1rem; /* Asegura un tamaño de fuente legible para el cuerpo del texto */
    line-height: 1.6; /* Mejora la legibilidad del párrafo */
}

.machinery-sale h3 {
    font-size: 1.8rem; /* Tamaño del título principal de la sección */
    text-align: center; /* Centra el título de la sección */
    margin-bottom: 20px;
}

.machinery-sale p {
    font-size: 1rem; /* Tamaño del párrafo introductorio */
    line-height: 1.6;
    text-align: left; /* Alinea el texto a la izquierda para mejor lectura */
    margin-bottom: 20px;
}

.machinery-sale .machinery-list.grid-3 {
    display: block; /* Apila los elementos de la lista de maquinaria */
}

.machinery-sale .grid-item {
    margin-bottom: 30px; /* Espacio entre los ítems de maquinaria */
    padding: 15px;
    border: 1px solid #ddd; /* Añade un borde sutil para separar los ítems */
    border-radius: 8px;
    background-color: #f9f9f9; /* Un fondo ligeramente grisáceo para destacar cada ítem */
}

.machinery-sale .grid-item h4 {
    font-size: 1.2rem; /* Tamaño del título de cada máquina */
    text-align: center; /* Centra el título de la máquina */
    margin-bottom: 10px;
    color: var(--primary-color); /* Usa el color primario para destacar el título */
}

.machinery-sale .grid-item p {
    font-size: 0.95rem; /* Tamaño de la descripción de la máquina */
    line-height: 1.5;
    text-align: left; /* Alinea la descripción a la izquierda */
}

.machinery-sale .call-to-action-text {
    font-size: 1rem; /* Tamaño del texto de llamada a la acción */
    line-height: 1.6;
    text-align: center; /* Centra el texto de llamada a la acción */
    margin-top: 30px;
    margin-bottom: 20px;
}

.quote-button-container {
    text-align: center; /* Centra el botón de cotización */
}

    /* --- Comportamiento del Body cuando el menú está abierto --- */
    body.mobile-nav-open {
        overflow: hidden; /* Evita el scroll del fondo */
    }
    
    /* --- HEADER MÓVIL - CORRECCIÓN DE ALINEACIÓN --- */
    header {
        padding: 5px 0;
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        width: 100%;
    }

    /* Fix para eliminar conflictos */
    header .container::after, header .container > div[style*="clear"] {
        display: none;
    }

    .desktop-nav {
        display: none;
    }

    /* Botón Hamburguesa a la izquierda y alineado */
    .hamburger-button {
        display: grid;
        place-items: center;
        background: transparent; border: none; cursor: pointer;
        width: 44px; height: 30px; /* Área de toque adecuada */
        z-index: 1010;
    }

    .hamburger-line {
        display: block; width: 25px; height: 3px;
        background-color: var(--dark-color); margin: 2.5px 0;
    }

    /* Logo centrado */
    header .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        float: none;
        margin: 0;
    }
    .logopic {
        max-width: 180px;
    }
    
    /* --- SIDENAV (PANEL LATERAL) - REDISEÑO PROFESIONAL --- */
    .mobile-sidenav {
        display: block; position: fixed; top: 0; left: 0;
        width: 300px; max-width: 80%; height: 100vh;
        /* Efecto "Frosted Glass" */
        background-color: rgba(34, 40, 49, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1030;
        padding-top: 60px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    body.mobile-nav-open .mobile-sidenav {
        transform: translateX(0);
        box-shadow: 5px 0 30px rgba(0,0,0,0.4);
    }

    .close-nav-button {
        display: block; position: absolute; top: 10px; right: 15px;
        font-size: 2.5rem; color: var(--light-color);
        background: transparent; border: none; cursor: pointer;
        padding: 5px;
    }

    /* --- OVERLAY (FONDO OSCURO) --- */
    .page-overlay {
        display: block; position: fixed; top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1020;
        opacity: 0; visibility: hidden;
        transition: opacity 0.4s ease;
    }

    body.mobile-nav-open .page-overlay {
        opacity: 1; visibility: visible;
    }

    /* --- ESTILOS DE ENLACES DEL SIDENAV --- */
    .mobile-sidenav ul {
        list-style: none;
    }
    .mobile-sidenav ul li a {
        display: flex; 
        align-items: center; 
        padding: 16px 20px; 
        color: #f0f0f0; 
        text-decoration: none; /* Sin subrayado */
        font-size: 1.1rem;
        font-weight: 500;
        transition: background-color 0.2s ease, padding-left 0.2s ease;
        border-left: 4px solid transparent;
    }
    .mobile-sidenav ul li a:hover {
        background-color: rgba(255, 119, 0, 0.15);
        border-left-color: var(--primary-color);
        padding-left: 24px;
    }
    
    .mobile-sidenav .cta-button {
        display: block; text-align: center;
        background-color: var(--primary-color); color: #fff !important; 
        margin: 25px 15px 15px 15px; padding: 12px; border-radius: 5px;
        border-left-color: transparent;
    }
    .mobile-sidenav .cta-button:hover {
        background-color: #e66c00;
        padding-left: 12px;
        transform: none;
    }
    
    /* --- SUBMENÚ SIEMPRE VISIBLE Y ESTILIZADO --- */
    .mobile-sidenav .dropdown a .dropdown-icon {
        display: none; /* Ocultamos la flecha porque ya no es un toggle */
    }

    .mobile-sidenav .dropdown .dropdown-menu {
        display: block; /* <<-- CORRECCIÓN: El submenú es visible por defecto */
        padding: 5px 0; 
        background-color: rgba(0, 0, 0, 0.35);
        border: none;
        box-shadow: none;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    .mobile-sidenav .dropdown-menu li {
        border: none;
    }
    .mobile-sidenav .dropdown-menu li a {
        padding-left: 45px;
        color: #dcdcdc !important;
        font-size: 1rem;
        font-weight: 400;
        border-left-color: transparent;
    }
    .mobile-sidenav .dropdown-menu li a:hover {
        background-color: rgba(255, 119, 0, 0.25);
        padding-left: 50px;
    }

    /* --- AJUSTES GENERALES DE CONTENIDO --- */
    .container { width: 90%; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.8rem; }
    #hero { height: 450px; }
    .slide-content h2 { font-size: 1.9rem; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .service-block { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .service-block .geology-content-block { text-align: center; }
    .service-block.reverse-layout .geology-content-block { order: 0; }
    .geology-image-block { order: -1; }
    footer .footer-content { flex-direction: column; text-align: center; }
    footer .footer-section { margin-bottom: 30px; text-align: center; }
    footer .social-icons { justify-content: center; }
 
    
    .whatsapp-float {
        width: 50px; height: 50px;
        bottom: 15px; right: 15px;
        font-size: 24px;
    }
}

/* Elimina el color azul y el subrayado por defecto que aplican los navegadores móviles */
a[href^="tel:"] {
    color: inherit; /* Hereda el color del texto de su elemento padre (p, h3, etc.) */
    text-decoration: none; /* Elimina cualquier subrayado */
    cursor: pointer; /* Mantiene el cursor de puntero para indicar que es clickeable */
}

/* =============================== */
/* Estilos para la sección de Geociencias */
/* =============================== */

/* Estilos para la cuadrícula principal de la sección (imagen y texto) */
.geociencias-overview.grid-2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.geociencias-content h3 {
    font-size: 2rem;
    color: #1a4d6e;
    margin-bottom: 15px;
}

.geociencias-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.geociencias-image-wrapper {
    text-align: center;
}

.geociencias-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Estilos para el grid de beneficios */
.geociencias-advantages .section-title {
    margin-top: 60px;
}

.geociencias-advantages .section-subtitle {
    margin-bottom: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: left;
}

.grid-item {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.grid-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1a4d6e;
}

.grid-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.quote-button-container {
    text-align: center;
    margin-top: 60px;
}

.quote-button-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-prominent {
    background-color: #2a6198; /* Un azul más oscuro */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-prominent:hover {
    background-color: #1a4d6e; /* Un azul más profundo al pasar el ratón */
}

/* Media query para hacer el diseño responsivo en pantallas más pequeñas */
@media (max-width: 768px) {
    .geociencias-overview.grid-2-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =============================== */
/* Nuevos Estilos para la cuadrícula de Geociencias */
/* =============================== */

/* Contenedor de la cuadrícula de beneficios */
.geociencias-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    text-align: left;
}

/* Elementos dentro de la cuadrícula */
.geociencias-grid-item {
    background-color: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.geociencias-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.geociencias-grid-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1a4d6e;
}

.geociencias-grid-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Media query para el diseño responsivo en pantallas más pequeñas */
@media (max-width: 768px) {
    .geociencias-overview.grid-2-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}