@config '../../tailwind.config.js';
@import "tailwindcss";

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
        "Noto Color Emoji";
}

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

body {
    color: #333;
}

/* Header y navegación */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.top-header {
    background-color: #f2f2f2;
    padding: 5px 0;
}

.top-bar {
    display: flex;
    justify-content: center;
    max-width: 100%;
    height: 3rem;
    margin: 0;
    padding: 20px 20px;
    background-color: #328c40;
}

.top-bar .contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info span {
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.contact-info a,
i {
    margin-left: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 10px;
    color: #333;
    font-size: medium;
    background-color: #292727;
}

.main-header a {
    cursor: pointer;
}

.main-header nav ul li a {
    color: white;
}

.logo img {
    font-size: 24px;
    width: 20%;
    height: auto;
    font-weight: bold;
    color: #328c40;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #328c40;
}

/* Hero section */
.hero {
   height: 630px;
    background-image: url("");
    background-size: cover;
    background-position: center;
    align-items: center;
    position: relative;
    background-color: #292727;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    padding-top: 200px;
    width: 70%;
    padding-left: 20px;
    color: #000;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-content a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 20px;
    background-color: #328c40;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-content a i {
    margin-right: 5px;
    margin-left: 0px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
}

.hero p {
    font-size: 1.125rem;
    color: #ccc;
}

.btn-home {
    display: inline-block;
    padding: 1.25rem 2rem;
    background-color: #328c40;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease box-shadow 0.3s ease;
    width: 220px;
    text-align: center;
    margin: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap:10px;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.btn-home:nth-child(3){
    animation-delay: 0.3s;
}

.btn-home:nth-child(4){
    animation-delay: 0.6s;
}

.btn-home:hover {
    background-color: #2a7a37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(50, 140, 64, 0.6);
}

.btn-home i {
    margin-right: 8px;
    transition: transform 0.5s ease;
}

.btn-home:hover i {
    transform: rotate(20deg) scale(1.3);
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* */

.container {
    margin: 0 auto;
    padding: 2rem;
    background-color: #328c40;
    height: 100%;
}

/* Estilos del título */
h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Estilos de la descripción */
.description {
    font-size: 1.1rem;
    text-align: justify;
    margin-top: 1rem;
    color: #ccc
}

/* Estilos de la sección de productos */

.products-section img{
    width: 100%;
    height: auto;
    max-width: 100%;
}

.product-card{
    transition: transform 0.3s, box-shadow 0.3s;

}

.product-card img{
    transition: transform 0.5s ease;
}

.product-card:hover {
    transform: translateY(-10px), scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.company-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    font-size: medium;
}
.company-info h1 {
    font-size: 30px;
    width: 20%;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

}

/* Servicios */
.services {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.swiper-container {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    text-align: center;
    background: #328c40;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px; /* Tamaño de cada slide */
    flex-shrink: 0;
    overflow: hidden;
}

.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    margin: 10px 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2e3134;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    border:none;
}

.header-button {
    border-radius: 0;
    padding: 0.8rem 30px;
    background-color: #333;
    margin: 40px;
}

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

.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
}

.about {
    padding: 80px 0;
}

.about-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-img {
    flex: 1;
    height: 400px;
    background-image: url("");
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.about-content {
    flex: 1;
    padding-left: 60px;
}

.about-content h2 {
    font-size: 36px;
    color: #328c40;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 0;
    padding: 2rem 1rem;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    align-items: start;
}

.footer-section {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Estilos para el logo */
.footer-section img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

/* Estilos de títulos */
.footer-section h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
}

.contact-info p,
.address p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Alineación vertical de todos los elementos */
.footer-section > * {
    vertical-align: top;
}

.footer-section h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

/* Estilos de texto y enlaces */
.footer-section p {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #3498db;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2980b9;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .about-container {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
        margin-bottom: 30px;
    }

    .about-content {
        padding-left: 0;
    }
}
