:root {
    --primary-color: #ff0000;
    --secondary-color: #ffffff;
    --accent-color: #b30000;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --gray: #dddddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* Header Styles */
/* Header Styles con logo de imagen */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 150px;
    height: 120px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-image {
    transform: scale(1.1);
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-around;
    }

    .nav-links li {
        margin: 0;
    }
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.split-images {
    display: flex;
    height: 100%;
}

.image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.image-container.left {
    background: url('https://images.unsplash.com/photo-1521737852567-6949f3f9f2b5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    position: relative;
}

.image-container.left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.22);
}

.image-container.right {
    background: url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -5%;
    position: relative;
}

.image-container.right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.22);
}

.image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-color);
    text-align: center;
    width: 80%;
    z-index: 1;
}

.image-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.image-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: var(--text-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Section Styles */
.section {
    padding: 5rem 10%;
    margin-bottom: 2rem;
}

.section:nth-child(odd) {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

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

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}
p{
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}
/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Mejora para las tarjetas de productos */
.product-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;  /* Asegura que todas las tarjetas tengan la misma altura */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card h3 {
    color: var(--primary-color);
    padding: 1rem 1rem 0.5rem;
}

.product-card p {
    padding: 0 1rem 1rem;
    flex-grow: 1;  /* Permite que la descripción ocupe el espacio disponible */
}

.product-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;  /* Empuja el botón hacia abajo */
}

.product-button:hover {
    background-color: var(--accent-color);
}
/* Certificates Section */
.certificates {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.certificate {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.certificate:hover {
    transform: translateY(-5px);
}

.certificate-icon {
    margin-bottom: 1rem;
}

.certificate h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Help Section */
.help-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.faq, .contact-form {
    flex: 1;
    min-width: 300px;
}

.accordion {
    margin-top: 1rem;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gray);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background-color: var(--light-gray);
    font-weight: bold;
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    
}
a{
    text-decoration: none;
}

.accordion-content p {
    padding: 1rem;
    margin: 0;
    text-align: left;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
}

input, textarea {
    background-color: var(--secondary-color);
}

select {
    background-color: var(--secondary-color);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--accent-color);
}

/* Services Section Styles */
.service-section {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
}

.services-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.services-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-snap-type: x mandatory;
}

.services-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.service-card {
    min-width: 280px;
    flex: 0 0 280px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent var(--primary-color) transparent transparent;
}

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

.service-icon {
    margin: 0 auto 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-control:hover {
    background-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@media (max-width: 768px) {
    .service-card {
        min-width: 85%;
        flex: 0 0 85%;
    }
}

/* Footer Styles */
/* Footer Styles con mapa */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo, .footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-map {
    flex: 2;
    min-width: 300px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo span {
    margin-left: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-links h4, .footer-contact h4, .footer-map h4 {
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .footer-map {
        flex: 100%;
        order: 1;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        order: 2;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Nosotros Section */
.about-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto 3rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.about-tabs {
    display: flex;
    background-color: var(--primary-color);
}

.tab-button {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-panel h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tab-panel p {
    line-height: 1.8;
    text-align: left;
}

.valores-list {
    list-style: none;
}

.valores-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    line-height: 1.6;
}

.valores-list li span {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.photo-gallery {
    max-width: 900px;
    margin: 0 auto;
}

.photo-gallery h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.gallery-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.gallery-item {
    width: 250px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    animation: slideIn 0.8s ease forwards;
    animation-delay: var(--delay);
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
}

.gallery-caption h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-around;
    }

    .nav-links li {
        margin: 0;
    }

    .hero {
        height: 60vh;
    }

    .split-images {
        flex-direction: column;
    }

    .image-container.left, .image-container.right {
        clip-path: none;
        margin-left: 0;
        height: 50%;
    }
    
    .section {
        padding: 3rem 5%;
    }
    
    .feature, .certificate {
        min-width: 100%;
    }
    
    .help-content {
        flex-direction: column;
    }
}