/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #e84118;
    color: #fff;
    border: 2px solid #e84118;
}

.btn-primary:hover {
    background-color: transparent;
    color: #e84118;
}

.btn-light {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-light:hover {
    background-color: #fff;
    color: #333;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #333;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: #e84118;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.logo img {
    height: 70px;
    width: auto;
}

.logo-img {
    height: 70px !important;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-img-large {
    height: 100px !important;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.logo-img-large:hover {
    transform: scale(1.05);
}

.footer-logo .logo-img-large {
    height: 80px !important;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav ul li a:hover {
    color: #e84118;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e84118;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/id/450/1920/1080') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 50px;
    color: #e84118;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 20px 10px;
}

.product p {
    margin: 0 20px 20px;
    color: #666;
}

/* Featured Products Section */
.featured-products {
    padding: 100px 0;
}

.featured-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.featured-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.featured-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.featured-item.reverse .featured-image {
    order: 2;
}

.featured-item.reverse .featured-content {
    order: 1;
}

.featured-item.animate-item {
    opacity: 1;
    transform: translateY(0);
}

.featured-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.03);
}

.featured-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.featured-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #666;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/id/250/1920/1080') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 40px;
    color: #e84118;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-item a {
    color: #666;
    transition: color 0.3s ease;
    font-size: 18px;
}

.contact-item a:hover {
    color: #e84118;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e84118;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 70px;
    width: auto;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #e84118;
}

.footer-social {
    display: flex;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: #e84118;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(20px);
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature, .product, .contact-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
}

.features-grid .feature, .products-grid .product {
    opacity: 0;
    transform: translateY(20px);
}

section.animate .feature, section.animate .product {
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease forwards;
}

.features-grid .feature:nth-child(1), .products-grid .product:nth-child(1) {
    animation-delay: 0.1s;
}

.features-grid .feature:nth-child(2), .products-grid .product:nth-child(2) {
    animation-delay: 0.2s;
}

.features-grid .feature:nth-child(3), .products-grid .product:nth-child(3) {
    animation-delay: 0.3s;
}

.features-grid .feature:nth-child(4), .products-grid .product:nth-child(4) {
    animation-delay: 0.4s;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 30px;
    }

    .featured-item,
    .featured-item.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-item .featured-image,
    .featured-item .featured-content,
    .featured-item.reverse .featured-image,
    .featured-item.reverse .featured-content {
        order: 0;
    }
    
    .featured-image img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 15px 0;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100vh;
        background-color: #fff;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 0 0 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-links {
        margin: 20px 0;
    }

    .footer-links ul {
        flex-direction: column;
    }

    .footer-links ul li {
        margin: 10px 0;
    }

    .footer-social {
        justify-content: center;
    }

    .contact-content {
        padding: 0 10px;
    }
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    .contact-item {
        padding: 25px 10px;
    }
}

.text-logo {
    font-size: 28px;
    font-weight: 700;
    color: #e84118;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo .text-logo:hover {
    transform: scale(1.05);
    color: #c23616;
}

.footer-logo .text-logo {
    color: #fff;
    font-size: 24px;
}

/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #e84118;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #c23616;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

/* Sección de Gestión */
.management {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.management-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.management-text {
    flex: 1;
}

.management-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.management-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.management-text ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.management-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.management-text ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007bff;
}

.management-image {
    flex: 1;
}

.management-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .management-content {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .management-text, .management-image {
        width: 100%;
        padding: 0;
    }

    .management-image img {
        margin-top: 20px;
    }
}

/* Ajustes para la sección de productos */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
}

/* Ajustes para la sección de productos destacados */
@media (max-width: 768px) {
    .featured-grid {
        padding: 0 15px;
    }

    .featured-item {
        flex-direction: column;
    }

    .featured-item.reverse {
        flex-direction: column;
    }

    .featured-image, .featured-content {
        width: 100%;
    }
} 