/* Base Styles */
:root {
    --primary-color: #0a7c65;
    --primary-hover: #086553;
    --background-color: #e8f4f0;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --white: #fff;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-group {
    display: flex;
    gap: 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    max-width: 700px;
    margin: 0 auto 1rem;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Image Grid with Carousels */
.image-grid-container {
    width: 100%;
    overflow: hidden;
}

/* Carousel Base Styles */
.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.25rem;
}

.carousel-track {
    display: flex;
    width: calc(25% * 4); /* 8 items at 25% width each */
}

.carousel-item {
    flex: 0 0 25%; /* Each item takes 25% of container width */
    padding: 0 0.125rem;
    box-sizing: border-box;
}

/*tamaño de la imagen*/
.carousel-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* Animation for Carousel */
.carousel-right .carousel-track {
    animation: scrollRight 30s linear infinite;
}

@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-25% * 4)); /* Move left by 4 items */
    }
}

/* Partner Section */
.partner-section {
    padding: 4rem 0;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-features {
    margin-top: 1.5rem;
    list-style-position: inside;
    padding-left: 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    height: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.benefits-image img {
    border-radius: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.quote {
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #ccc;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.author-name {
    font-weight: 500;
}

.author-position {
    font-size: 0.875rem;
    color: var(--text-light);
}

.testimonial-source {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.testimonial-source svg {
    margin-right: 0.25rem;
}

/* About Hero Section */
.about-hero {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Hero Section */
/*.contact-hero {
    padding: 4rem 0;
}*/

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-item h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form-container {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
}

.map-container {
    margin-top: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    text-align: center;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-image {
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.team-image img {
    width: 100%;
    height: 300px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.team-title {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.team-social a {
    color: var(--text-light);
}

.team-social a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col img{
    max-width: 100px;
    margin-bottom: 1rem;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.footer-col:nth-child(1), .footer-col:nth-child(2) {
    flex: 1;
}

.footer-col:nth-child(3) {
    margin-left: auto;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.footer-links div {
    margin-bottom: 0.5rem;
}

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

.social-icons a {
    color: var(--text-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-copyright {
    text-align: center;
}

.footer-creator {
    text-align: center;
    margin-top: 0.5rem;
}

.footer-links-bottom {
    display: flex;
    gap: 1.5rem;
}

.footer-links-bottom a {
    color: var(--text-light);
}

/* Testimonios */
.testimonios {
    position: relative;
}

.testimonios::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Ajusta la altura según sea necesario para cubrir el branding */
    background-color: var(--background-color); /* Mismo color que el fondo */
    z-index: 10; /* Asegura que esté por delante de todo */
}

/* Contact Float Button */
.contact-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.contact-float:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.contact-float svg {
    width: 28px;
    height: 28px;
    color: white;
}

.contact-float .tooltip {
    position: absolute;
    top: -50px;
    right: 0;
    background-color: white;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-float .tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.contact-float:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .contact-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid,
    .about-grid,
    .contact-grid,
    .team-grid,
    .stats-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        flex-wrap: wrap;
    }
    
    .footer-col:nth-child(1), .footer-col:nth-child(2), .footer-col:nth-child(3) {
        flex: 0 0 100%;
        margin-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-links-bottom {
        margin-top: 1rem;
    }
    
    /* Ajustes para contacto */
    .contact-grid {
        display: flex;
        flex-direction: column;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .contact-content {
        order: 2;
        width: 100%;
    }
    
    .contact-form-container {
        order: 1;
        margin-bottom: 2.5rem;
        width: 100%;
        padding: 2.5rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    
    /* Ajustes para sobre-nosotros */
    .about-grid {
        display: flex;
        flex-direction: column;
    }
    
    .about-content {
        order: 1;
    }
    
    .about-image {
        order: 2;
        margin-top: 2rem;
    }
    
    .team-card {
        margin-bottom: 2rem;
    }
    
    /* Ajustes para servicios */
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Ajustes adicionales para móviles pequeños */
    .hero {
        padding: 2rem 0;
    }
    
    .contact-hero,
    .about-hero,
    .services-section,
    .team-section,
    .stats-section {
        padding: 2rem 0;
    }
    
    .contact-hero .container {
        padding: 0 0.75rem;
    }
    
    .contact-grid {
        max-width: 100%;
        padding: 0;
        margin: 0 auto;
    }
    
    .contact-info {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
        padding: 0 1.25rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .contact-item:last-child {
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        margin-bottom: 1rem;
        margin-right: 0;
        width: 60px;
        height: 60px;
    }
    
    .contact-item h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .map-container {
        height: 300px;
        margin-top: 1rem;
        margin-bottom: 2.5rem;
        border-radius: 0.75rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
        margin-bottom: 2.5rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        border-radius: 0.75rem;
        width: 100%;
    }
    
    .contact-form h2 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .form-group label {
        margin-bottom: 0.75rem;
    }
    
    .btn-primary {
        width: 50%;
        height: auto;
        padding: 1rem;
        font-size: 0.8rem;
    }
}
