/* Importamos la fuente Roboto de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

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

}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f4;
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: 2.7em;
}

h3 {
    font-size: 2em;
}

p {
    font-size: 1em;
}

button {
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
    background-color: darkred;
}

button:hover {
    background-color: red;
}

.logo {
    margin: 0;
    padding: 25px 30px;
    font-weight: bold;
    color: darkred;
    font-size: 1.6em;
    width: 300px;

}

nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

nav img {
    height: 50px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

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

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    padding: 10px 15px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #671725;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 90vh;
    color: white;
    background-image: linear-gradient(0deg,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)), url("imgs/hero3.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

@keyframes slide {

    0%,
    100% {
        transform: translateX(0);
    }

    33% {
        transform: translateX(-100%);
    }

    66% {
        transform: translateX(-200%);
    }
}

/* Secciones */
.section {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.card-container {
    perspective: 1000px;
}

.card {
    width: 500px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover {
    transform: rotateY(180deg);
}

.card-front {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;

}


.card-back {
    transform: rotateY(180deg);
    background: rgba(100, 20, 30, 0.8);
    color: white;
}

.gallery {
    padding: 40px 20px;
    background-color: #f8f8f8;
    text-align: center;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 20px auto;
}

.gallery-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

.gallery-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.whatsapp-button:hover {
    transform: scale(1.1);
}



footer {
    background-color: #222;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

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

.footer-left {
    font-size: 16px;
}

.footer-right a {
    color: #fff;
    font-size: 20px;
    margin-left: 15px;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: red;
    /* Puedes cambiar este color */
}


.contact {
    background-color: #222;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.contact-title {
    font-size: 26px;
    margin-bottom: 20px;
    color: #f8f8f8;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #f8f8f8;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
    background: rgba(255, 255, 255, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    color: #fff;
    background: #00bcd4;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #008ba3;
}

.maquinaria {
  padding: 40px 20px;
  background-color: #fff;
}

.maquinaria-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.maquinaria-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.maquina-card {
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
}

.maquina-card:hover {
  transform: scale(1.02);
}

.maquina-card img {
  width: 100%;
  height: auto;
  display: block;
}

.maquina-card h4 {
  margin: 15px 10px 5px;
  font-size: 1.1rem;
}

.maquina-card p {
  margin: 0 10px 15px;
  font-size: 0.9rem;
  color: #555;
}



/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(255, 255, 255, 0.9);
        width: 200px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }

    .card {
        width: 90vw;
        height: 50vh;
    }
   .maquinaria-container {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Responsive */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        margin-top: 10px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-form {
        padding: 15px;
    }
}
