/* Responsive styles */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero {
        padding: 180px 0 140px;
        min-height: 550px;
        background-position: center 120px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .service-item {
        padding: 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .main-logo {
        height: 70px;
    }
    
    .footer-logo-img {
        height: 60px;
    }
    
    .team-grid {
        gap: 30px;
    }
    
    .team-member-image {
        height: 280px;
    }
    
    .about-features-container {
        gap: 25px;
        padding: 0 15px;
    }
    
    .about-feature-item {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 24px;
    }
    
    /* Testimonials responsive */
    .testimonials-container {
        max-width: 700px;
    }
    
    .testimonial-item {
        padding: 25px;
    }
    
    /* Contact responsive */
    .contact-map-form {
        gap: 20px;
    }
    
    .contact-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    header .container {
        padding: 0 15px;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    nav.active {
        max-height: 300px;
        padding: 15px 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero {
        padding: 160px 0 120px;
        min-height: 500px;
        background-position: center 100px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-item {
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo, .footer-menu, .footer-social, .footer-contact {
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-menu li {
        margin-bottom: 0;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .main-logo {
        height: 65px;
    }
    
    .footer-logo-img {
        height: 55px;
    }
    
    .team-grid {
        gap: 25px;
    }
    
    .team-member-image {
        height: 260px;
    }
    
    .about-features-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto 40px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    
    .about-feature-item h4 {
        font-size: 1.2rem;
    }
    
    /* Testimonials responsive */
    .testimonials-container {
        max-width: 500px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    /* Contact responsive */
    .contact-map-form {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Estilos responsivos para los botones de contacto */
    .contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-button {
        width: 100%;
    }
    
    .service-buttons {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero {
        padding: 140px 0 100px;
        min-height: 450px;
        background-position: center 80px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .service-item h3 {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .about-features li {
        font-size: 0.9rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .main-logo {
        height: 60px;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .team-member-image {
        height: 250px;
    }
    
    .about-features-container {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto 40px;
    }
    
    .about-feature-item {
        padding: 25px 20px;
    }
    
    /* Estilos responsivos para los botones de contacto */
    .contact-buttons-container {
        padding: 20px 15px;
    }
    
    .button-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .button-title {
        font-size: 1.1rem;
    }
    
    .button-subtitle {
        font-size: 0.8rem;
    }
    
    /* Testimonials responsive */
    .testimonials-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .testimonial-item {
        padding: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .testimonial-author h4 {
        margin-bottom: 5px;
    }
    
    /* Contact responsive */
    .contact-details {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .map-container {
        padding: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Alert styles for form feedback */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    max-width: 350px;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    position: relative;
    animation: slideIn 0.3s ease forwards;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.alert-error {
    background-color: var(--primary-color);
}

.alert-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
