

html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

header {
    transition: top 0.4s;

    background-color: #fdd832f4;
    color: rgb(247, 6, 6);
    text-align: center;
    padding: 40px;

    position: sticky;
top: 0;
z-index: 1000;

    
}

section {
    padding: 30px;
    text-align: center;
    
}
ul {
    list-style-type: none;
    padding: 0;

    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

li {
    background: white;
    margin: 15px auto;
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);

     transition: 0.3s;

    min-height: 150px;
   
}

li {
    transition: 0.3s;
}

li:hover {
    transform: scale(1.05);
}


button {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

button:hover {
    background-color: #a00000;
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

input {
    width: 300px;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.appointment {
    text-align: center;
    padding: 40px;
}

.hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero {
    position: relative;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: white;
    text-align: center;
}


nav {
    margin-top: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 25px;
    font-size: 20px;
    font-weight: bold;

    transition: 0.3s;
}

nav a:hover {
    color: #2900e2;
     border-bottom: 2px solid #ffd700;
}


nav a {
    transition: 0.3s;
}

li h3 {
    margin-top: 0;
}

li p {
    font-size: 16px;
    margin-bottom: 0;
}


.why-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.why-card {
    background: white;
    width: 300px;
    padding: 20px;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);

    transition: 0.3s;
}

.why-card:hover {
    transform: scale(1.05);
}

.appointment-card {
    background: white;
    width: 400px;
    margin: 0 auto;
    padding: 30px;

    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.appointment-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;

    border: 1px solid #ccc;
    border-radius: 5px;

    box-sizing: border-box;
}

.appointment-card textarea {
    width: 100%;
    height: 120px;

    padding: 12px;
    margin-bottom: 15px;

    border: 1px solid #ccc;
    border-radius: 5px;

    box-sizing: border-box;
}

.logo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 80px;
    height: auto;
    cursor: pointer;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.4));

    /* mejora rendimiento en móviles */
    will-change: transform;
}

@keyframes engineStart {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1) rotate(-3deg);
    }

    50% {
        transform: scale(1.15) rotate(3deg);
    }

    75% {
        transform: scale(1.1) rotate(-2deg);
    }

    100% {
        transform: scale(1);
    }
}

.engine-animation {
    animation: engineStart 0.6s ease;
}



/* Ajustes para celulares */
@media (max-width: 768px) {

    header {
        padding: 15px;
        text-align: center;
    }

   .logo {
    width: 60px;
    top: 5px;
    right: 5px;
}

h1 {
    font-size: 24px;
    padding-right: 70px;
}
    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero img {
        width: 100%;
        height: auto;
    }

    .services {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .service-card {
        width: 100%;
    }
}

#team {
    text-align: center;
    padding: 50px 20px;
}

.team-photo {
    width: 80%;
    max-width: 900px;
    display: block;
    margin: 20px auto;

    border-radius: 15px;

    transition: 0.3s;
}

.team-photo:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {

    .team-photo {
        width: 95%;
    }

    .appointment-card {
    width: 90%;
}

li {
    width: 90%;
}

nav a {
    font-size: 18px;
}

.hero-text h1 {
    font-size: 24px;
}

.hero-text p {
    font-size: 16px;
}

}


#hours {
    background-color: white;
    width: 80%;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;

    border-radius: 15px;

    
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
