:root {
    --primary-color: #2B3C69;
    --secondary-color: #ffffff;
    --highlight-color: #E24A18;
    --text-color: #2B3C69;
    --background-color: #ffffff;
    --font-family: 'Roboto', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--highlight-color);
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.text-center {
    text-align: center;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 10px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 5px 5%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.logo img {
    width: auto;
    height: 70px;
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 60px;
}

.menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
}

.menu li {
    position: relative;
}

.menu a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    font-weight: 500;
    transition: var(--transition);
}

.menu a:hover {
    color: var(--highlight-color);
}

.menu a.active {
    color: var(--highlight-color);
    font-weight: 600;
}

/* Estilo de menú desplegable */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    min-width: 220px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95em;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Menú móvil */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--highlight-color);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--highlight-color);
}

/* Carrusel Mejorado */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 90px auto 30px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 600px; /* Ajusta este valor a tu gusto */
    object-fit: cover; /* Esto evita que la imagen se vea "aplastada" */
    display: block;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.indicators {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: var(--highlight-color);
    transform: scale(1.2);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
}

.prev:hover, .next:hover {
    background-color: var(--highlight-color);
    color: white;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Secciones de servicios */
.service-section {
    padding: 70px 0;
    text-align: center;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    flex: 0 0 calc(33.333% - 30px);
    min-width: 280px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
}

.service-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-text {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.service-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9em;
    transition: var(--transition);
}

.service-link:hover {
    background-color: var(--highlight-color);
    transform: scale(1.05);
}

/* Sección de contacto y formulario */
.contact-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-section h2 {
    margin: 30px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: var(--primary-color);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    margin-right: 15px;
    width: 24px;
    height: 24px;
    color: var(--highlight-color);
}

.contact-text {
    font-size: 1em;
}

.contact-form {
    flex: 1;
    min-width: 280px;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1em;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(43, 60, 105, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--highlight-color);
    transform: scale(1.05);
}

/* Sección de reseñas */
.review-section {
    padding: 60px 0;
    background-color: white;
}

.review-container {
    position: relative;
    overflow: hidden;
}

.reviews-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 100%;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 10px;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: var(--primary-color);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.85em;
    color: #777;
}

.review-rating {
    display: flex;
    margin-bottom: 15px;
}

.star {
    color: #ffc107;
    font-size: 1.2em;
    margin-right: 2px;
}

.review-content {
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
}

.review-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.review-prev, .review-next {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.review-prev:hover, .review-next:hover {
    background-color: var(--highlight-color);
}

/* Sección de aliados */
.allies-section {
    padding: 60px 0;
    background: linear-gradient(to right, rgba(43, 60, 105, 0.9), rgba(43, 60, 105, 0.7)), url('img/fondo2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.allies-section h2 {
    color: white;
    margin-bottom: 30px;
}

.allies-section h2::after {
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
}

.allies-list {
    padding: 0;
    list-style-type: none;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 20px;
}

.allies-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.allies-list li:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    background-color: var(--highlight-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 30px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    background-color: white;
    color: var(--highlight-color);
    border-color: var(--highlight-color);
    transform: scale(1.05);
}

/* Sección de clientes */
/* Sección de clientes actualizada */
.clients-section {
    padding: 60px 0;
    background-color: white;
}

.clients-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.clients-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--highlight-color);
}

.clients-section p {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 120px;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: white;
}

.client-item a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .client-item {
        height: 100px;
        padding: 15px;
    }
    
    .client-item img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .client-item {
        height: 90px;
        padding: 10px;
    }
    
    .client-item img {
        max-height: 50px;
    }
}

/* Sección Por qué elegirnos */
.why-us-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.why-us-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.why-us-item {
    flex: 0 0 calc(33.333% - 30px);
    min-width: 280px;
    background-color: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.why-us-icon {
    font-size: 2.5em;
    color: var(--highlight-color);
    margin-bottom: 20px;
}

.why-us-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Sección de Estibas */
.pallets-section {
    padding: 60px 0;
}

.pallets-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.pallet-item {
    flex: 0 0 calc(33.333% - 30px);
    min-width: 280px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.pallet-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pallet-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pallet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pallet-item:hover .pallet-img img {
    transform: scale(1.05);
}

.pallet-content {
    padding: 20px;
    text-align: center;
}

.pallet-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.pallet-text {
    color: #666;
    margin-bottom: 15px;
}

.buy-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
}

.buy-btn:hover {
    background-color: var(--highlight-color);
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--highlight-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--highlight-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.social-link img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
}

.social-link:hover {
    color: var(--highlight-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

/* Modal de formulario de reseña */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2em;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--highlight-color);
}

.modal-body {
    padding: 20px;
}

.rating-select {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.rating-label {
    margin-bottom: 10px;
    font-weight: 500;
}

.stars-container {
    display: flex;
}

.star-rating {
    font-size: 1.5em;
    color: #ddd;
    cursor: pointer;
    margin-right: 5px;
    transition: var(--transition);
}

.star-rating.selected,
.star-rating:hover,
.star-rating:hover ~ .star-rating {
    color: #ffc107;
}

/* Media Queries */
@media (max-width: 992px) {
    .service-card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .why-us-item {
        flex: 0 0 calc(50% - 20px);
    }
    
    .pallet-item {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.8em;
    }
    
    .navbar {
        padding: 10px 5%;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background-color: var(--secondary-color);
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu a {
        padding: 15px 5%;
        width: 100%;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        border-radius: 0;
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding-left: 30px;
    }
    
    .carousel-slide img {
        height: 300px;
    }
    
    .service-card,
    .why-us-item,
    .pallet-item {
        flex: 0 0 100%;
    }
    
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .allies-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .carousel-slide img {
        height: 250px;
    }
    
    .prev, .next {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .submit-btn {
        width: 100%;
    }
}

.cta-section {
    padding: 60px 0;
    background-color: #f5f5f7;
    text-align: center;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.2em;
    position: relative;
}

.cta-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--highlight-color);
}

.cta-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
}

.cta-section .btn {
    background-color: var(--highlight-color);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.cta-section .btn:hover {
    background-color: white;
    color: var(--highlight-color);
    border-color: var(--highlight-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Sección de clientes */
.clients-section {
    padding: 60px 0;
    background-color: white;
}

.clients-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.clients-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--highlight-color);
}

.clients-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.client-logo-wrapper {
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.client-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.clients-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.client-logo-wrapper:hover .clients-image {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 1.8em;
    }
    
    .cta-section .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .client-logo-wrapper {
        width: 95%;
    }
}

.video-section {
    padding: 70px 0;
    background-color: #f9f9f9;
}

.video-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.video-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--highlight-color);
}

.video-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.video-container video {
    width: 100%;
    display: block;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.video-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(226, 74, 24, 0.8);
    border-radius: 50%;
}

.play-btn:hover {
    transform: scale(1.1);
    background-color: var(--highlight-color);
}

.play-btn svg {
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    .video-section {
        padding: 50px 0;
    }
    
    .video-container {
        width: 95%;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }
    
    .play-btn svg {
        width: 30px;
        height: 30px;
    }
}

/* Estilos para páginas de servicios */
#cargue-descargue .content,
#empaque-embalaje .content,
#estibado-paletizado .content,
#montaje-eventos .content,
#cuarto-frio .content,
#gestion-inventarios .content,
#ruta-distribucion .content,
#bodega .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

#cargue-descargue .text,
#empaque-embalaje .text,
#estibado-paletizado .text,
#montaje-eventos .text,
#cuarto-frio .text,
#gestion-inventarios .text,
#ruta-distribucion .text,
#bodega .text {
    margin-bottom: 30px;
    margin-top: 1%;
}

#cargue-descargue h2,
#empaque-embalaje h2,
#estibado-paletizado h2,
#montaje-eventos h2,
#cuarto-frio h2,
#gestion-inventarios h2,
#ruta-distribucion h2,
#bodega h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    text-align: center;
}

#cargue-descargue h2::after,
#empaque-embalaje h2::after,
#estibado-paletizado h2::after,
#montaje-eventos h2::after,
#cuarto-frio h2::after,
#gestion-inventarios h2::after,
#ruta-distribucion h2::after,
#bodega h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--highlight-color);
}

#cargue-descargue p,
#empaque-embalaje p,
#estibado-paletizado p,
#montaje-eventos p,
#cuarto-frio p,
#gestion-inventarios p,
#ruta-distribucion p,
#bodega p {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
    color: #555;
}

#cargue-descargue .images,
#empaque-embalaje .images,
#estibado-paletizado .images,
#montaje-eventos .images,
#cuarto-frio .images,
#gestion-inventarios .images,
#ruta-distribucion .images,
#bodega .images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

#cargue-descargue .images img,
#empaque-embalaje .images img,
#estibado-paletizado .images img,
#montaje-eventos .images img,
#cuarto-frio .images img,
#gestion-inventarios .images img,
#ruta-distribucion .images img,
#bodega .images img {
    width: calc(50% - 15px);
    max-width: 450px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#cargue-descargue .images img:hover,
#empaque-embalaje .images img:hover,
#estibado-paletizado .images img:hover,
#montaje-eventos .images img:hover,
#cuarto-frio .images img:hover,
#gestion-inventarios .images img:hover,
#ruta-distribucion .images img:hover,
#bodega .images img:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Estilos para la sección 'Nosotros' */
#nosotros {
    padding: 100px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

#nosotros .gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

#nosotros .gallery-item {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#nosotros .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#nosotros .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

#nosotros .gallery-item:hover img {
    transform: scale(1.02);
}

/* Ajuste para la sección de estibas */
.pallet-img {
    height: 220px;
}

.pallet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos responsive */
@media (max-width: 768px) {
    #cargue-descargue .content,
    #empaque-embalaje .content,
    #estibado-paletizado .content,
    #montaje-eventos .content,
    #cuarto-frio .content,
    #gestion-inventarios .content,
    #ruta-distribucion .content,
    #bodega .content {
        padding: 80px 15px 30px;
    }
    
    #cargue-descargue h2,
    #empaque-embalaje h2,
    #estibado-paletizado h2,
    #montaje-eventos h2,
    #cuarto-frio h2,
    #gestion-inventarios h2,
    #ruta-distribucion h2,
    #bodega h2 {
        font-size: 1.8em;
    }
    
    #cargue-descargue .images,
    #empaque-embalaje .images,
    #estibado-paletizado .images,
    #montaje-eventos .images,
    #cuarto-frio .images,
    #gestion-inventarios .images,
    #ruta-distribucion .images,
    #bodega .images {
        flex-direction: column;
        align-items: center;
    }
    
    #cargue-descargue .images img,
    #empaque-embalaje .images img,
    #estibado-paletizado .images img,
    #montaje-eventos .images img,
    #cuarto-frio .images img,
    #gestion-inventarios .images img,
    #ruta-distribucion .images img,
    #bodega .images img {
        width: 100%;
        height: 250px;
    }
}

/* Ajustes adicionales para errores comunes */
#venta-fabricacion-estibas {
    padding-top: 100px;
}

/* Arreglo para las tarjetas de imágenes en páginas de servicios */
.service-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.image-card {
    width: calc(50% - 15px);
    max-width: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .service-images {
        flex-direction: column;
        align-items: center;
    }
    
    .image-card {
        width: 100%;
    }
    
    .image-card img {
        height: 250px;
    }
}

/* Corrección para botón de compra en estibas.html */
.buy-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.buy-btn:hover {
    background-color: var(--highlight-color);
    transform: scale(1.05);
}

/* Estilos para el tlf y para el correo
 */

 .footer-section a {
    text-decoration: none; /* Eliminar subrayado */
    color: var(--secondary-color); /* Color azul predeterminado */
    font-weight: bold;
    transition: color 0.3s ease; /* Efecto de transición */
}

.footer-section a:hover {
    color: var(--secondary-color); /* Color más oscuro en hover */
}

.footer-section p {
    margin: 5px 0; /* Espaciado entre los párrafos */
    font-size: 16px; /* Ajustar el tamaño de la fuente */
}

.social-links .social-link {
    display: flex;
    align-items: center;
    margin: 10px 0; /* Espaciado entre los enlaces */
    text-decoration: none;
    color: #333; /* Color texto predeterminado */
}

.social-links .social-link img {
    width: 20px; /* Ajustar tamaño de los iconos */
    height: 20px;
    margin-right: 10px; /* Espacio entre el icono y el texto */
}

/* ============================================
   ESTILOS PARA LA SECCIÓN DE CLIENTES
   Agregar estos estilos a tu archivo estilos.css
   ============================================ */

/* Contenedor de estadísticas */
.clients-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  padding: 30px 20px;
  background: linear-gradient(135deg, #2B3C69 0%, #1a2744 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(43, 60, 105, 0.3);
}

/* Cada item de estadística */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 40px;
  min-width: 150px;
}

/* Número de la estadística */
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 10px;
}

/* Etiqueta de la estadística */
.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-weight: 400;
}

/* Separador visual entre estadísticas (opcional) */
.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE - ESTADÍSTICAS
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
  .clients-stats {
    gap: 20px;
    padding: 25px 15px;
  }
  
  .stat-item {
    padding: 15px 25px;
    min-width: 130px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .clients-stats {
    gap: 15px;
    padding: 20px 10px;
  }
  
  .stat-item {
    padding: 15px 20px;
    min-width: 45%;
    border-right: none !important;
  }
  
  /* Agregar borde inferior en lugar de derecho para móviles */
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .clients-stats {
    gap: 10px;
    padding: 15px 10px;
  }
  
  .stat-item {
    padding: 12px 15px;
    min-width: 42%;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* ================================================
   SECCIÓN UBICACIÓN / MAPA — agregar a estilos.css
   ================================================ */

.location-section {
  padding: 70px 0;
  background: #fff;
  color: #fff;
}

.location-section h2 {
  color: var(--text-color);
  font-size: 2rem;
  margin-bottom: 8px;
}

.location-section p.text-center {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 35px;
}

/* Layout: info lateral + mapa */
.location-wrapper {
  display: flex;
  gap: 30px;
  align-items: stretch;
  flex-wrap: wrap;
}

/* Columna de tarjetas de info */
.location-info {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.location-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
  transition: background 0.2s;
}

.location-info-item:hover {
  background: rgba(255, 255, 255, 0.13);
}

.location-icon {
  font-size: 1.5rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.location-info-item h4 {
  margin: 0 0 5px 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.location-info-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
}

.location-info-item a {
  color: #fff;
  text-decoration: none;
}

.location-info-item a:hover {
  text-decoration: underline;
}

/* Mapa responsivo */
.map-container {
  flex: 2.5;
  min-width: 280px;
  position: relative;
  padding-bottom: 45%;   /* proporción 16:9 aprox */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Botón Google Maps */
.location-btn-wrap {
  text-align: center;
  margin-top: 30px;
}

.location-btn {
  background: #fff !important;
  color: #2B3C69 !important;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.location-btn:hover {
  background: #e8ecf5 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .location-wrapper {
    flex-direction: column;
  }

  .map-container {
    padding-bottom: 70%; /* más alto en móvil */
    min-width: unset;
  }

  .location-section h2 {
    font-size: 1.5rem;
  }
}






