/* Brazilian Flag Colors */
:root {
    /* Brazilian flag colors */
    --brazil-green: #009c3b;
    --brazil-yellow: #ffdf00;
    --brazil-blue: #002776;
    --brazil-white: #ffffff;

    /* Main theme colors based on Brazilian flag */
    --primary-color: var(--brazil-green);
    --primary-dark: #007e2f;
    --secondary-color: var(--brazil-yellow);
    --secondary-dark: #e6c700;
    --accent-color: var(--brazil-blue);
    --accent-dark: #001c5c;

    /* Other UI colors */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #eeeeee;
    --dark-gray: #333333;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--brazil-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--brazil-yellow);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-accent {
    background-color: var(--brazil-blue);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--brazil-green);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    background-color: var(--brazil-green);
}

#header.scrolled {
    background-color: var(--brazil-green);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brazil-yellow);
    transition: var(--transition);
}

#header.scrolled .logo span {
    color: var(--brazil-yellow);
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brazil-yellow);
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brazil-yellow);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

#header.scrolled .main-nav a {
    color: var(--white);
}

#header.scrolled .main-nav a:hover,
#header.scrolled .main-nav a.active {
    color: var(--brazil-yellow);
}

#header.scrolled .main-nav a::after {
    background-color: var(--brazil-yellow);
}

.phone-number a {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.phone-number i {
    margin-right: 8px;
}

.phone-number a:hover {
    color: var(--brazil-yellow);
}

#header.scrolled .phone-number a {
    color: var(--brazil-yellow);
}

#header.scrolled .phone-number a:hover {
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

#header.scrolled .mobile-menu-btn {
    color: var(--brazil-yellow);
}

/* Language selector */
.language-selector {
    position: relative;
    margin-right: 20px;
    z-index: 1000;
}

.current-lang {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--white);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

#header.scrolled .current-lang {
    color: var(--brazil-yellow);
    border-color: rgba(255, 255, 0, 0.3);
}

.current-lang span {
    margin-right: 5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 120px;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.lang-dropdown li:hover {
    background-color: var(--light-gray);
    color: var(--brazil-green);
}

.lang-dropdown li.active {
    color: var(--brazil-green);
    font-weight: 500;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--brazil-green);
    z-index: 1001;
    padding: 20px;
    transition: var(--transition);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    text-align: right;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--brazil-yellow);
    cursor: pointer;
}

.mobile-menu ul {
    margin-top: 20px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: var(--white);
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--brazil-yellow);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url("../imagenes/fondo.jpg");
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 156, 59, 0.8); /* Brazil green with opacity */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: var(--brazil-yellow);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--brazil-yellow);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-header h2 {
    color: var(--brazil-green);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--brazil-yellow);
}

.section-header p {
    color: var(--text-light);
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    border-top: 3px solid var(--brazil-green);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top-color: var(--brazil-yellow);
}

.value-icon {
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--brazil-green);
}

.value-card:hover .value-icon {
    color: var(--brazil-yellow);
}

.value-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.value-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Languages Section */
.languages-section {
    background-color: var(--white);
    padding: 80px 0;
    color: var(--text-color);
}

.languages-section .section-header h2 {
    color: var(--brazil-green);
}

.languages-section .section-header p {
    color: var(--text-light);
}

.language-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 0;
    color: var(--brazil-green);
}

.languages-flags-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px;
}

.flag-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--brazil-yellow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.flag-circle:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--brazil-blue);
}

.flag-circle img {
    width: 50%;
    height: 50%;
    object-fit: cover;
}

.more-languages {
    background-color: var(--brazil-yellow);
    color: var(--brazil-green);
    font-size: 2rem;
}

.languages-cta {
    text-align: center;
    margin-top: 30px;
}

.languages-cta .btn-primary {
    background-color: var(--brazil-green);
    color: var(--white);
}

.languages-cta .btn-primary:hover {
    background-color: var(--brazil-yellow);
    color: var(--brazil-green);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--brazil-green), var(--brazil-yellow), var(--brazil-blue));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--brazil-green);
    margin-bottom: 20px;
}

.service-card:hover .service-icon {
    color: var(--brazil-blue);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Documents Section */
.documents-section {
    background-color: var(--white);
    padding: 80px 0;
}

.documents-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.documents-intro h2 {
    font-size: 2.8rem;
    color: var(--brazil-green);
    margin-bottom: 20px;
}

.documents-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.document-categories {
    max-width: 900px;
    margin: 0 auto;
}

.document-category {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.document-category.animate {
    opacity: 1;
    transform: translateY(0);
}

.document-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.document-category-icon {
    width: 50px;
    height: 50px;
    background-color: var(--brazil-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.document-category-icon i {
    font-size: 1.5rem;
    color: var(--brazil-blue);
}

.document-category h3 {
    font-size: 1.8rem;
    color: var(--brazil-green);
    margin: 0;
}

.document-list {
    padding-left: 65px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.document-item {
    position: relative;
    padding: 10px 0;
    padding-left: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.document-item:hover {
    transform: translateX(5px);
    color: var(--brazil-green);
}

.document-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brazil-blue);
}

.documents-cta {
    text-align: center;
    margin-top: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.documents-cta.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Opcion */

/* Para la descripción en categorías de documentos */
.document-category-description {
    padding-left: 65px;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Para la sección de equipo (si decides crear una nueva) */
.team-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.team-category {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.team-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--brazil-green), var(--brazil-yellow), var(--brazil-blue));
}

.team-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-icon {
    font-size: 2.5rem;
    color: var(--brazil-green);
    margin-bottom: 20px;
}

.team-category:hover .team-icon {
    color: var(--brazil-blue);
}

.team-category h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.team-category p {
    color: var(--text-light);
    margin-bottom: 0;
}



/* Contact Section */
.contact-section {
    background-color: var(--brazil-green);
    color: var(--white);
}

.contact-section .section-header h2 {
    color: var(--brazil-yellow);
}

.contact-section .section-header p {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info h3,
.contact-form-container h3 {
    margin-bottom: 20px;
    color: var(--brazil-yellow);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 30px;
    height: 30px;
    background-color: var(--brazil-yellow);
    color: var(--brazil-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.colegio-link a {
    display: flex;
    align-items: center;
    color: var(--brazil-yellow);
    font-weight: 500;
    transition: var(--transition);
}

.colegio-link a i {
    margin-left: 8px;
}

.colegio-link a:hover {
    color: var(--white);
}

.contact-form-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--text-color);
}

.contact-form-container p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--brazil-green);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brazil-green);
    box-shadow: 0 0 0 2px rgba(0, 156, 59, 0.2);
}

.file-input-container {
    display: flex;
    align-items: center;
}

.file-input-button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--brazil-yellow);
    color: var(--brazil-blue);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.file-input-button:hover {
    background-color: var(--brazil-green);
    color: var(--white);
}

.file-input-button i {
    margin-right: 8px;
}

.file-input {
    display: none;
}

.file-name {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    background-color: var(--brazil-green);
}

.submit-btn:hover {
    background-color: var(--brazil-blue);
}

#form-messages {
    margin-bottom: 20px;
}

.success-message {
    background-color: rgba(0, 156, 59, 0.1);
    color: var(--brazil-green);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--brazil-green);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.footer-logo span {
    color: var(--brazil-yellow);
}

.footer-about p {
    color: white;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--brazil-yellow);
    color: var(--brazil-green);
    transform: translateY(-3px);
}

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--brazil-yellow);
}

.footer h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--brazil-yellow);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--brazil-yellow);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: white;
}

.footer-contact ul li i {
    margin-right: 15px;
    color: var(--brazil-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition);
}

.whatsapp-button.visible {
    opacity: 1;
    transform: scale(1);
}

.whatsapp-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--brazil-green);
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-button a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    background-color: var(--brazil-yellow);
    color: var(--brazil-green);
}

/* Brazil flag animation */
.brazil-flag-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 40px 0;
    overflow: hidden;
}

.brazil-flag {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--brazil-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brazil-diamond {
    position: absolute;
    width: 50%;
    height: 70%;
    background-color: var(--brazil-yellow);
    transform: rotate(45deg);
}

.brazil-circle {
    position: absolute;
    width: 35%;
    height: 50%;
    background-color: var(--brazil-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brazil-band {
    position: absolute;
    width: 80%;
    height: 15%;
    background-color: var(--white);
    border-radius: 10px;
    transform: rotate(-15deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brazil-blue);
    font-size: 0.7rem;
    font-weight: bold;
}

.brazil-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star {
    position: absolute;
    background-color: var(--white);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 1s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Brazil flag wave animation */
@keyframes flagWave {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.brazil-flag {
    animation: flagWave 6s ease-in-out infinite;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .main-nav,
    .phone-number {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Ajustar el header para el nuevo elemento */
    .language-selector {
        margin-right: 10px;
    }

    .languages-flags {
        gap: 20px;
    }

    .document-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .languages-flags {
        gap: 15px;
    }

    .language-item {
        width: 100px;
    }

    .flag-circle {
        width: 80px;
        height: 80px;
    }

    .documents-intro h2 {
        font-size: 2.2rem;
    }

    .document-category h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 500px;
    }

    .value-card,
    .service-card {
        padding: 20px;
    }

    .languages-flags {
        gap: 10px;
    }

    .language-item {
        width: 80px;
    }

    .flag-circle {
        width: 70px;
        height: 70px;
    }

    .language-item h3 {
        font-size: 0.8rem;
    }

    .documents-intro h2 {
        font-size: 1.8rem;
    }

    .documents-intro p {
        font-size: 1rem;
    }

    .document-category-header {
        flex-direction: column;
        text-align: center;
    }

    .document-category-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .document-list {
        padding-left: 0;
    }
}
