/* Homebox Styles */
.homebox {
    background-color: #4CAF50; /* Apple green */
    color: black;
    position: fixed;
    width: 100%;
    min-width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 800px;
    min-height: 800px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column;
}

.homebox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fondohome.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.homebox .grid-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.homebox h1 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: black;
}
.sectiontitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
}
.homebox p {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: black;
}

.tagline {
    font-size: 1.5rem;
    color: white;
    opacity: 0.9;
}

.logo-image {
    max-width: 300px;
    height: auto;
}

/* Navigation Styles */
.main-nav {
    background: #4CAF50;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    height: 80px;
    display: flex;
    align-items: center;
}

.main-nav .grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
}

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

/* Ajuste para el logo en el menú de scroll */
.main-nav .nav-logo {
    height: 100px;
    width: auto;
    position: relative;
    top: 10px;
}

.menu-item {
    color: white;
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 0;
    text-align: center;
}

.menu-item:hover {
    color: #f5f5f5;
}

.main-nav .button {
    background-color: white;
    color: black;
    padding: 0.75rem 1.5rem;
    height: 40px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    white-space: nowrap;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.main-nav .button:hover {
    background-color: #f5f5f5;
}

.main-nav .language-switch {
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.4rem;
    height: 30px;
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    white-space: nowrap;
}

.main-nav .flag-icon {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    position: relative;
    top: -4px;
}

/* Button Styles */
.button {
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #388E3C;
    color: white;
}

/* Content Sections */
.content-sections {
    margin-top: 800px; /* Same as homebox height */
}

.section {
    padding: 2rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: white;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

#services {
    padding-top: 1rem;
    background-color: white;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    height: 400px;
    margin-bottom: 2rem;
    cursor: pointer;
    perspective: 1000px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    padding: 0;
}

.service-card.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 0;
}

.service-card-front {
    background: #4CAF50;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-icon {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-card-front h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    text-align: center;
    font-weight: bold;
    z-index: 1;
    padding: 1.5rem;
    background: linear-gradient(to top, #4CAF50, transparent);
}

.service-card-front h3 br {
    display: none;
}

/* Responsive adjustments */
@media screen and (min-width: 1024px) {
    .service-card-front h3 br {
        display: inline;
    }
}

@media screen and (max-width: 1024px) {
    .service-card {
        height: 350px;
    }
    
    .service-card-front h3 {
        font-size: 1.6rem;
        padding: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .service-card {
        height: 300px;
    }
    
    .service-card-front h3 {
        font-size: 1.4rem;
        padding: 1rem;
    }
}

.service-card-back {
    background: #E87703;
    color: white;
    transform: rotateY(180deg);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Capa de la imagen de fondo */
.service-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
    border-radius: 15px;
}

/* Capa del color naranja */
.service-card-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #E87703;
    opacity: 0.75;
    z-index: 2;
    border-radius: 15px;
}

/* Contenedor del texto */
.service-card-back-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.service-card-back h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    text-align: center;
    font-weight: bold;
}

.service-card-back p {
    color: white;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    font-size: 1.1rem;
    max-width: 95%;
    font-weight: bold;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card.flipped:hover {
    transform: translateY(-5px);
}

/* Secondary Services Styles */
.secondary-services {
    padding: 2rem 0;
    background-color: white;
}

.secondary-services-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.secondary-service-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.secondary-service-item:last-child {
    border-bottom: none;
}

.secondary-service-item h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.secondary-service-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

@media screen and (max-width: 1024px) {
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        height: 180px;
    }
}

@media screen and (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-icon {
        height: 160px;
    }

    .section {
        padding: 1.5rem 0;
    }

    #services {
        padding-top: 0.5rem;
    }
}

/* Course Cards */
.course-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rating {
    color: #ffc107;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    align-self: flex-start;
    margin-top: auto;
}

.view-all-blog {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.view-all-blog:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Blog Header */
.blog-header {
    background: #4CAF50;
    color: white;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.back-home, .back-to-blog {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-home:hover, .back-to-blog:hover {
    color: #e0e0e0;
}

.blog-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-article {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-article:hover .blog-article-image img {
    transform: scale(1.05);
}

.blog-article-content {
    padding: 2rem;
}

.blog-article-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.blog-article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #666;
    flex-wrap: wrap;
}

.blog-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-article-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    flex-wrap: wrap;
}

.blog-article-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Responsive Blog Grid */
@media screen and (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-article-content {
        padding: 1.5rem;
    }
    
    .blog-article-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-article-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1025px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pagination */
.pagination-container {
    margin-top: 3rem;
    text-align: center;
}

.pagination-info {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1rem;
}

.pagination {
    margin: 0;
}

.pagination li {
    margin: 0 0.25rem;
}

.pagination a {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: transparent !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    text-decoration: none !important;
}

.pagination a:hover {
    background-color: #f0f0f0 !important;
    border-color: #ccc !important;
    color: #333 !important;
}

.pagination .current a {
    background-color: #4CAF50 !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

.pagination .current a:hover {
    background-color: #45a049 !important;
    border-color: #45a049 !important;
    color: white !important;
}

/* Sobrescribir estilos específicos de Foundation */
.pagination .current {
    background-color: transparent !important;
}

.pagination .current a,
.pagination .current a:focus,
.pagination .current a:hover {
    background-color: #4CAF50 !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

/* Article Styles */
.article-header {
    background: #4CAF50;
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 0;
}

.article-main {
    width: 100%;
    background: white;
}

.full-article {
    width: 100%;
    max-width: none;
}

.article-title-section {
    background: #f8f9fa;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.article-title-section .grid-container {
    /* Removido max-width para que use el mismo ancho que el header */
}

.article-title-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.3;
}

.article-meta {
    color: #666;
    font-size: 1rem;
}

.meta-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.meta-row span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-image {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    padding: 3rem 0;
    background: white;
}

.article-image .grid-container {
    /* Removido max-width para que use el mismo ancho que el header */
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.article-content {
    padding: 3rem 0;
    background: white;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content .grid-container {
    /* Removido max-width para que use el mismo ancho que el header */
}

.article-rating-section {
    background: #f8f9fa;
    padding: 3rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.article-footer {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-share span {
    color: #666;
    font-size: 0.9rem;
}

.share-link {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.share-link:hover {
    color: #4CAF50;
}

/* Responsive Article */
@media screen and (max-width: 768px) {
    .article-title-section {
        padding: 2rem 0;
    }
    
    .article-title-section h1 {
        font-size: 2rem;
    }
    
    .meta-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-image {
        padding: 2rem 0;
    }
    
    .article-content {
        padding: 2rem 0;
    }
    
    .article-rating-section {
        padding: 2rem 0;
    }
    
    .article-footer {
        padding: 2rem 0;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-title-section .grid-container,
    .article-image .grid-container,
    .article-content .grid-container {
        padding: 0 1rem;
    }
}

/* Contact Form */
.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Form Styles */
input, textarea {
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 640px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .logo-image {
        max-width: 200px;
    }

    .section {
        padding: 2rem 0;
    }
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 0 0 0;
    margin-top: 4rem;
}

.footer h4 {
    color: #4CAF50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: #4CAF50;
    margin-right: 1rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #4CAF50;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
}

.footer-bottom p {
    margin: 0;
    color: #888;
}

/* Responsive Footer */
@media screen and (max-width: 640px) {
    .footer {
        padding: 2rem 0 0 0;
    }

    .footer .cell {
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

.homebox-nav {
    width: 100vw;
    padding: 1rem 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.homebox-nav .nav-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
    padding-left: 1rem;
}

.homebox-nav .nav-left,
.homebox-nav .nav-right {
    display: flex;
    align-items: center;
}

.homebox-nav .nav-right {
    margin-left: auto;
}

.homebox-nav .nav-links {
    display: flex;
    gap: 2rem;
    margin-left: 0;
}

.homebox-nav .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    cursor: pointer;
    display: inline-block;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 1001;
}

.homebox-nav .nav-links a:hover {
    color: #f5f5f5;
}

.homebox-nav .auth-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.homebox-nav .button {
    background-color: white;
    color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.homebox-nav .button:hover {
    background-color: #f5f5f5;
}

.homebox-nav .language-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.homebox-nav .flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

@media screen and (max-width: 768px) {
    .homebox-nav {
        position: relative;
        z-index: 1002;
    }

    .homebox-nav .nav-links,
    .scroll-menu .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #4CAF50;
        padding: 0.3rem 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 1002;
        margin-top: 0;
    }

    .homebox-nav .nav-links a,
    .scroll-menu .nav-links a {
        color: white;
        transition: color 0.3s ease;
        padding: 0.3rem 0;
        font-size: 1rem;
        margin: 0;
    }

    .homebox-nav .nav-links a:hover,
    .scroll-menu .nav-links a:hover {
        color: #e0e0e0;
    }

    .homebox-nav .nav-links.active,
    .scroll-menu .nav-links.active {
        display: flex;
    }

    .homebox-nav .nav-right,
    .scroll-menu .nav-right {
        margin-left: auto;
    }
}

/* Media Queries para pantallas más pequeñas */
@media screen and (max-width: 1500px) {
    .homebox {
        min-width: 100%;
        height: 800px;
        min-height: 800px;
    }
    
    .grid-container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .homebox-nav .menu li {
        margin: 0 0.5rem;
    }
}

/* Media Queries para tablets */
@media screen and (max-width: 1024px) {
    .homebox {
        height: 800px;
        min-height: 800px;
    }
    
    .homebox-nav .menu li {
        margin: 0 0.3rem;
    }
    
    .homebox-nav .menu a {
        font-size: 1rem;
    }
    
    .homebox-nav .button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Media Queries para móviles */
@media screen and (max-width: 640px) {
    .homebox {
        height: 800px;
        min-height: 800px;
        padding: 1rem 0;
    }
    
    .homebox-nav {
        padding: 0.5rem 0;
    }
    
    .homebox-nav .menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .homebox-nav .menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .homebox-content {
        padding: 1rem 0;
    }
}

.homebox-logo {
    max-width: 120%;
    height: auto;
    margin-top: -30px;
    transform: scale(1.2);
}

.homebox-content {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homebox-content .grid-x {
    width: 100%;
    height: 100%;
    align-items: center;
}

.auth-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 10px; /* Cambiado a positivo para bajar el contenedor */
}

.cta-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.start-here {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.request-button {
    background-color: white;
    color: black;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.request-button:hover {
    background-color: #f5f5f5;
    color: black;
}

/* Assessment Request Form Styles */
.assessment-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.assessment-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.assessment-form input,
.assessment-form select,
.assessment-form textarea {
    width: 100%;
    padding: 1.25rem; /* Aumentado el padding vertical */
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 1rem;
    height: 65px; /* Aumentada la altura fija para inputs y selects */
}

.assessment-form select {
    padding-right: 2.5rem; /* Más espacio para la flecha del select */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.assessment-form textarea {
    height: 180px; /* Aumentada la altura fija para el textarea */
    resize: vertical;
    min-height: 180px;
}

.assessment-form .submit-button {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.assessment-form .submit-button:hover {
    background-color: #45a049;
}

#assessment-request {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

#assessment-request h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 0;
}

#assessment-form-start {
    scroll-margin-top: 0;
}

.form-anchor {
    display: block;
    position: relative;
    top: -880px; /* Altura del homebox + menú */
    visibility: hidden;
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Navigation Styles */
.homebox-nav, .scroll-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4CAF50;
}

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

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    .homebox-nav .nav-right {
        margin-left: auto;
    }

    .scroll-menu {
        padding: 0.5rem 1rem;
    }

    .scroll-menu .logo {
        height: 40px;
    }

    .homebox-logo {
        display: none;
    }

    .homebox-content .cell.medium-6 {
        width: 100%;
        text-align: center;
    }

    .homebox-content .text-right {
        text-align: center;
    }

    .cta-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .start-here {
        text-align: center;
    }

    .request-button {
        margin: 0 auto;
    }
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.scroll-menu {
    background: #4CAF50;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-menu.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-menu .grid-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scroll-menu .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.scroll-menu .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    cursor: pointer;
    display: inline-block;
    padding: 0.5rem 1rem;
}

.scroll-menu .nav-links a:hover {
    color: #f5f5f5;
}

.scroll-menu .logo {
    height: 110px;
    width: auto;
    margin-top: 20px;
}

.scroll-menu .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-menu .button {
    background-color: white;
    color: #4CAF50;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.scroll-menu .button:hover {
    background-color: #f5f5f5;
}

.scroll-menu .language-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 1rem;
}

.scroll-menu .flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

@media screen and (max-width: 768px) {
    .scroll-menu .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #4CAF50;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

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

    .scroll-menu .language-switch {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

.homebox .image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}

.homebox .image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cta-button .button {
    background-color: white;
    color: #4CAF50;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: 2px solid #4CAF50;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button .button:hover {
    background-color: #204922;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 73, 34, 0.2);
}

@media screen and (max-width: 768px) {
    .cta-button .button {
        font-size: 1.1rem;
        padding: 0.9rem 1.8rem;
    }
}

.footer-cta .button {
    background-color: white;
    color: #4CAF50;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: 2px solid #4CAF50;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-cta .button:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

@media screen and (max-width: 768px) {
    .footer-cta .button {
        font-size: 1.1rem;
        padding: 0.9rem 1.8rem;
    }
}

/* Anchor Styles */
.anchor {
    display: block;
    position: relative;
    top: -780px; /* Altura del homebox + menú */
    visibility: hidden;
}

/* Ajuste para cuando el homebox está oculto */
.homebox[style*="visibility: hidden"] ~ .content-sections .anchor {
    top: -80px; /* Solo altura del menú */
}

/* Homemas Section */
.homemas-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#homemas {
    padding: 3rem 0;
    background-color: white;
}

@media screen and (max-width: 768px) {
    .homemas-image {
        max-width: 90%;
    }
}

/* Sistema de Rating */
.article-rating-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.article-rating-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.current-rating {
    margin-bottom: 1.5rem;
}

.current-rating p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.rating-form p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    margin: 0 0.1rem;
    transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

.star-rating label i {
    transition: transform 0.2s ease;
}

.star-rating label:hover i {
    transform: scale(1.1);
}

.submit-rating {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-rating:hover {
    background-color: #45a049;
}

.submit-rating:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.rating-message {
    margin-top: 1rem;
}

.rating-message p {
    margin: 0;
    font-weight: 500;
}

.already-rated {
    text-align: center;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 5px;
    border: 1px solid #4CAF50;
}

.already-rated p {
    margin: 0;
    color: #2e7d32;
    font-weight: 500;
}

.already-rated i {
    margin-right: 0.5rem;
    color: #4CAF50;
}

/* Responsive para el sistema de rating */
@media screen and (max-width: 768px) {
    .article-rating-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .star-rating label {
        font-size: 1.8rem;
    }
    
    .submit-rating {
        width: 100%;
        padding: 1rem;
    }
}

/* Search Form Styles */
.search-form {
    margin: 0;
}

.search-form .input-group {
    margin: 0;
}

.search-form .input-group-field {
    border-radius: 5px 0 0 5px;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    transition: border-color 0.3s ease;
    height: auto;
    line-height: 1.5;
}

.search-form .input-group-field:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.search-form .input-group-button .button {
    border-radius: 0 5px 5px 0;
    background-color: #4CAF50;
    border: 2px solid #4CAF50;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0;
}

.search-form .input-group-button .button:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-1px);
}

.search-form .input-group-button .button i {
    margin-right: 0.5rem;
}

.search-results-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #4CAF50;
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.search-results-info .clear-search {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.search-results-info .clear-search:hover {
    text-decoration: underline;
}

/* Responsive Search */
@media screen and (max-width: 768px) {
    .search-form .input-group {
        flex-direction: column;
    }
    
    .search-form .input-group-field {
        border-radius: 5px 5px 0 0;
        margin-bottom: 0;
    }
    
    .search-form .input-group-button .button {
        border-radius: 0 0 5px 5px;
        width: 100%;
    }
    
    .search-results-info {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* Search Highlighting */
mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: 500;
}

/* Responsive Search */
@media screen and (max-width: 768px) {
    .search-form .input-group {
        flex-direction: column;
    }
    
    .search-form .input-group-field {
        border-radius: 5px 5px 0 0;
        margin-bottom: 0;
    }
    
    .search-form .input-group-button .button {
        border-radius: 0 0 5px 5px;
        width: 100%;
    }
    
    .search-results-info {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* Blog Logo Styles */
.blog-header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.blog-title-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-logo {
    max-height: 60px;
    width: auto;
}

.article-header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.article-home-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-logo {
    max-height: 60px;
    width: auto;
}

/* Responsive Blog Logo */
@media screen and (max-width: 768px) {
    .blog-logo,
    .article-logo {
        max-height: 50px;
    }
    
    .blog-title-logo,
    .article-home-logo {
        gap: 0.5rem;
    }
} 

.fondogreen {
    background-color: #204922;
    color: white;
}

.fondogreen h2 {
    color: white;
}

/* Assessment Form Styles */
.assessment-form .callout.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.assessment-form .callout.alert {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.assessment-form .callout h3,
.assessment-form .callout h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.assessment-form .callout ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.assessment-form .callout li {
    margin-bottom: 0.5rem;
}

.assessment-form .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
