:root {
    --primary-color: #c01c13;
    --secondary-color: #FFF;
    --text-color: #03153e;
    --light-gray: #f4f4f4;
    --dark-gray: #f4f4f9;
}

/* Animaciones para la sección Sobre Nosotros */
.about-img-anim {
    opacity: 0;
    transform: translateX(-40px);
}

.about-img-anim.animate-in {
    animation: aboutImgFadeIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.about-img-anim.animate-out {
    animation: aboutImgFadeOut 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes aboutImgFadeIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aboutImgFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-40px);
    }
}

.about-text-anim {
    opacity: 0;
    transform: translateX(40px);
}

.about-text-anim.animate-in {
    animation: aboutTextFadeIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.about-text-anim.animate-out {
    animation: aboutTextFadeOut 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes aboutTextFadeIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aboutTextFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

.burger-menu {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.burger-menu i {
    font-size: 1.5rem;
    color: var(--text-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

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


.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.logo h1 {
    font-family: "Abril Fatface", serif;
    color: var(--text-color);
    font-size: 1.8rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(87, 110, 163, 0.7), rgba(213, 177, 210, 0.9)), url('../images/studio-bg.jpg');
    background-size: cover;
}
.webp .hero {
    background: linear-gradient(rgba(87, 110, 163, 0.7), rgba(213, 177, 210, 0.9)), url('../images/studio-bg.webp');
    background-position: center;
    background-size: cover;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content img {
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #ff0000;
    transform: scale(1.1);
}


/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Works Section */
.works {
    padding: 5rem 0;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input,
textarea {
    outline: none;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition : border-color 0.3s ease;
}

textarea {
    height: 150px;
}

/* Cambiar borde de textarea y input al color primario cuando esta en estado seleccionado */
input:focus,
textarea:focus {
    border: 1px solid #ff0000;
}

.submit-button {
    font-family: "Work Sans", sans-serif;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color:  var(--text-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #FFF;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Animación de entrada para el logo principal */
.hero-content {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 2s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header and Navigation */
    header {
        height: 60px;
    }

    nav {
        padding: 0;
    }

    nav ul {
        display: none;
        list-style: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 1rem 0;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    .burger-menu {
        display: block;
    }

    .logo {
        display: none;
    }

    .hero-content img {
        max-width: 300px !important;
    }

    .hero h2 {
        font-size: 2rem;
    }

    /* Sections */
    .about-content, .sobre-nosotros-content {
        grid-template-columns: 1fr;
    }

    .about-image, .sobre-nosotros-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 1rem;
    }

    .form-group {
    margin-bottom: 1.5rem;
    }

    label {
        display: block;
        margin-bottom: 0.5rem;
    }

    input,
    textarea {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    textarea {
        height: 150px;
    }

    .copyright p {
        font-size: 12px;
        text-align: center;
    }

}
