@view-transition {
    navigation: auto;
}

::view-transition-group(*) {
    animation-duration: 0.5s;
}

::view-transition-old(root) {
    animation: slide-out-to-left 0.5s forwards;
}
::view-transition-new(root) {
    animation: slide-in-from-right 0.5s forwards;
}

@keyframes slide-out-to-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes slide-out-to-right {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
    
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #faed37;
    --secondary-color: #faed37;
    --background-color: #df6831;
    --text-color: #000000;
    --font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    max-width: 100%;
}

section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
}

/* ------------navbar------------ */
nav {
    display: flex;
    height: 40vh;
    padding-bottom: 3rem;
}

nav h1{
    color: var(--primary-color);
    font-size: 2rem;
    position: absolute;
    left: 1rem;
    top: 1rem;
}

nav a{
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
}


nav ul li {
    list-style: none;
    margin: 0 1rem;
    transition: ease .3s;
}

nav ul li:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
}


/* ------------home------------ */

.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
}

.home img {
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-bottom-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 70%;
    border-top-left-radius: 70%;
}

.home h2 {
    color: var(--primary-color);
    font-size: 12rem;
    margin-top: 3rem;
    text-align: center;
    text-transform: uppercase;
    position: absolute;
    top : 7.5rem;
}
/* ------------about------------ */

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--background-color);
}
.about .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.about .container h2 {
    width: 50%;
    color: var(--primary-color);
    font-size: 6rem;
    text-transform: uppercase;
    margin-left: 2rem;
    text-spacing-trim: 2px;
}

.about .container h2 span {
    font-size: 4rem;
}

.about .container p {
    width: 50%;
    color: var(--primary-color);
    font-size: 1.3rem;
    text-align: justify;
    text-align-last: center;
    margin-top: 1rem;
    font-weight: bold;
    margin-right: 5rem;
}
.about .container p span{

    font-size: 1.7rem;

}

/* ------------carrusel------------ */


.carousel-container {
    width: 100%;
    overflow: hidden;
    position: absolute;
}

.txt-wave {
    display: inline-block;
    white-space: nowrap;
    font-size: 44px;
    font-weight: bold;
    color: var(--primary-color);
    animation: wave 2s linear infinite, scroll 50s linear infinite;
    width: 100%;
    text-align: center;
}

@keyframes wave {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, 10px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* 
.txt-wave span {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    animation: onda 1s infinite;
    animation-delay: calc(.2s * var(--i));
}

@keyframes onda {
    0%, 40%, 100%{
        transform: translateY(0);
    }
    20% {
        transform: translateY(-20px);
    }
} */


/* @keyframes wave {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, 10px);
    }
}  */

/* @keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
} */ 


/* ------------catalogo------------ */

.catalog {
    margin-top: 20rem;
}

.catalog h2 {
    margin-top: 10rem;
    font-size: 7rem;
    width: 70%;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

.catalog .catalog-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.catalog .catalog-items .item {
    
    width: 400px;
    height: 800px;
    margin: 3rem;
    margin-top: 3rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.catalog .catalog-items .item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.catalog .catalog-items .item h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 1rem;
    text-align: center;
}
.catalog .catalog-items .item p {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
}

.catalog .catalog-items .item a {
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 50px;
    border-radius: 60%;
    border: 2px solid var(--primary-color);
    font-weight: bold;
}
.catalog .catalog-items .item a:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}



/* ------------division con foto------------ */
.img-div{
    margin-top: 19rem;
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
}
.img-div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ------------form------------ */

.formulario {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #DF6831;
    background: linear-gradient(0deg,rgba(223, 104, 49, 1) 40%, rgba(250, 237, 55, 1) 100%);
}

.formulario .container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.formulario .container p {
    position: relative;
    color: var(--text-color);
    padding: 19rem 55px;
    font-size: 1.5rem;
    text-align: justify;
    text-align-last: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 2rem;
    width: 30%;
    height: 700px;
    background-image: url('/src/images/bg.jpg');
    background-size: cover;
    background-position: center;
    border-top-left-radius: 60%;
    border-top-right-radius: 60%;
    z-index: 2;
}
/* 
.formulario .container p > * {
    position: relative;
    z-index: 3;
}

.formulario .container p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-top-left-radius: 60%;
    border-top-right-radius: 60%;
    z-index: 1;
} */

.formulario h2 {
    color: var(--text-color);
    font-size: 5rem;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    position: relative;
    
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 350px;
  background-color: #fff;
  padding: 60px;
  border-radius: 10px;
  position: relative;
}

.message {
  color: rgba(88, 87, 87, 0.822);
  font-size: 14px;
}

.flex {
  display: flex;
  width: 100%;
  gap: 6px;
}

.form label {
  position: relative;
}

.form label .input {
  width: 100%;
  padding: 20px 20px 20px 10px;
  margin: 20px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 5px;
}

.form label .input + span {
  position: absolute;
  left: 30px;
  top: 70px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
  top: 30px;
  font-size: 0.9em;
}

.form label .input:focus + span,.form label .input:valid + span {
  top: 20px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input:valid + span {
  color: green;
}

.input01 {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 5px;
}

.form label .input01 + span {
  position: absolute;
  left: 10px;
  top: 50px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input01:placeholder-shown + span {
  top: 40px;
  font-size: 0.9em;
}

.form label .input01:focus + span,.form label .input01:valid + span {
  top: 50px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input01:valid + span {
  color: green;
}

.fancy {
  background-color: transparent;
  border: 2px solid #cacaca;
  border-radius: 0px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 390;
  letter-spacing: 2px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 8px 30px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: all 0.3s ease-in-out;
  user-select: none;
  font-size: 13px;
}

.fancy::before {
  content: " ";
  width: 1.7rem;
  height: 2px;
  background: #cacaca;
  top: 50%;
  left: 1.5em;
  position: absolute;
  transform: translateY(-50%);
  transform: translateX(230%);
  transform-origin: center;
  transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
  font-size: 1.125em;
  line-height: 1.33333em;
  padding-left: 2em;
  display: block;
  text-align: left;
  transition: all 0.3s ease-in-out;
  text-transform: lowercase;
  text-decoration: none;
  color: #818181;
  transform: translateX(30%);
}

.fancy .top-key {
  height: 2px;
  width: 1.5625rem;
  top: -2px;
  left: 0.625rem;
  position: absolute;
  background: white;
  transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
  height: 2px;
  width: 1.5625rem;
  right: 1.875rem;
  bottom: -2px;
  position: absolute;
  background: white;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
  height: 2px;
  width: 0.625rem;
  right: 0.625rem;
  bottom: -2px;
  position: absolute;
  background: white;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
  color: white;
  background: #cacaca;
}

.fancy:hover::before {
  width: 1.5rem;
  background: white;
}

.fancy:hover .text {
  color: white;
  padding-left: 1.5em;
}

.fancy:hover .top-key {
  left: -2px;
  width: 0px;
}

.fancy:hover .bottom-key-1,
 .fancy:hover .bottom-key-2 {
  right: 0;
  width: 0;
}
/* ------------Footer------------ */

footer {
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0a0a;
    margin-bottom: 0;
    padding-bottom: 0;
}

footer .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--background-color);
    font-family: var(--font-family);
}

footer .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.3rem;
}

footer .info .location {
    text-align: center;
    margin-bottom: 0.5rem;
}

footer .info .email-info {
    text-align: center;
}

footer .logo-footer {
    width: 340px;
    height: auto;
    margin: 0 2rem;
}

footer .contact {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;

}

footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    cursor: pointer;
    
}

footer .social-icon svg {
    width: 44px;
    height: 44px;
}

footer .social-icon.facebook {
    svg {
        fill: #3b5998 !important;
    }
}

footer .social-icon.instagram {
    svg {
        fill: #e4405f !important;
    }
}

footer .social-icon.email {
    svg {
        fill: white !important;
    }
}
footer .social-icon.facebook:hover {
    background-color: #3b5998;
    svg {
        fill: white !important;
    }
}

footer .social-icon.instagram:hover {
    background-color: #e4405f;
    svg {
        fill: white !important;
    }
}

footer .social-icon.email:hover {
    background-color: #fff;
    svg {
        fill: rgb(0, 0, 0) !important;
    }
}

/* ------------Media Queries for Mobile Responsiveness------------ */
@media (max-width: 768px) {
    /* Navbar */
nav {
    height: 20vh;
    padding-bottom: 2rem;
}

nav h1{
    font-size: 1.2rem;
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
}

nav a{
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
}


nav ul li {
    list-style: none;
    margin: 0 0.5rem;
    margin-top: 2rem;
    transition: ease .3s;
}

nav ul li:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: absolute;
    right:  0.5rem;
    top:  0.5rem;
}

    /* Home Section */
    .home {
        height: auto;
        padding: 2rem 1rem;
    }
    .home h2 {
        font-size: 4rem;
        position: relative;
        top: 0;
        margin-top: 0;
        text-align: center;
    }
    .home img {
        width: 100%;
        height: auto;
        border-radius: 70% 40% 70% 40%;
    }

    /* About Section */
    .about {
        height: auto;
        padding: 2rem 1rem;
    }
    .about .container {
        flex-direction: column;
        text-align: center;
    }
    .about .container h2 {
        width: 100%;
        font-size: 3rem;
        margin-left: 0;
    }
    .about .container h2 span {
        font-size: 2rem;
    }
    .about .container p {
        width: 100%;
        font-size: 1rem;
        margin-right: 0;
        margin-top: 1rem;
    }

    /* Catalog Section */
    .catalog {
        width: 100%;
        height: auto;
        margin-top: 5rem;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
    }
    .catalog h2 {
        font-size: 3rem;
        width: 100%;
    }
    .catalog .catalog-items {
        flex-direction: column;
        padding: 0;
    }
    .catalog .catalog-items .item {
        width: 100%;
        height: auto;
        margin: 1rem 0;
    }
    .catalog .catalog-items .item img {
        width: 300px;
        height: auto;
    }
    .catalog .catalog-items .item h3 {
        font-size: 1.5rem;
    }
    .catalog .catalog-items .item p {
        font-size: 1rem;
    }
    .catalog .catalog-items .item a {
        padding: 8px 30px;
        font-size: 1rem;
    }

    /* Image Division */
    .img-div {
        height: 40vh;
        margin-top: 5rem;
    }
    .img-div img {
        height: 100%;
    }

    /* Form Section */
    .formulario {
        height: auto;
        padding: 2rem 1rem;
    }

    .formulario .container {
        flex-direction: column;
        padding: 0;
    }
    .formulario .container p {
        width: 100%;
        padding: 6rem 1rem;
        font-size: 1rem;
        height: auto;
        margin-bottom: 2rem;
        border-radius: 70% 70% 10% 10%;
    }
    .formulario h2 {
        font-size: 3rem;
        margin-top: 1rem;
    }
    .form {
        min-width: 100%;
        padding: 2rem;
    }

    /* Footer */
    footer {
        height: auto;
        padding: 2rem 1rem;
    }
    footer .container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        color: var(--background-color);
    }
    footer .info {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        font-size: 1rem;
    }
    footer .info .location,
    footer .info .email-info {
        text-align: center;
        width: 48%;
    }
    footer .logo-footer {
        margin: 0;
        width: 100px;
    }
    footer .contact {
        justify-content: center;
        width: 100%;
        gap: 1rem;
    }
    footer .social-icon {
        width: 30px;
        height: 30px;
    }
    footer .social-icon svg {
        width: 20px;
        height: 20px;
    }
}
