/* ===== RESET Y VARIABLES GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gray: #95a5a6;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

/* ===== ESTILOS BASE ===== */
body {
    font-family: 'Rubik', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== CLASES UTILITARIAS ===== */
.text-primary { color: var(--primary) !important; }
.text-center { text-align: center; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-dark {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #1a252f;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-load-more {
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-load-more:hover {
    background-color: #1d5a82;
}

.btn-load-more:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: #f1c40f;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f1c40f;
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('front5.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.hero-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--white);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 1;
    transform: translateX(-100%);
    transition: all 0.5s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-container:hover .overlay {
    transform: translateX(0);
}

.hero a {
    display: inline-block;
    margin: 20px auto 0;
    width: 200px;
    text-align: center;
    padding: 15px 30px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== COUNTER SECTION ===== */
.counter-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 3rem 0;
}

.counter-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.counter-item {
    text-align: center;
    padding: 20px;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.counter-text {
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-images {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-img-1, .about-img-2 {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.about-img-1 {
    width: 80%;
    position: relative;
    z-index: 2;
}

.about-img-2 {
    width: 60%;
    position: absolute;
    bottom: -30px;
    right: 0;
    z-index: 3;
    border: 5px solid var(--white);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.mission-vision {
    margin-top: 2rem;
}

.values-list {
    list-style: none;
    margin-top: 1rem;
}

.values-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}

.values-list li i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 5rem 0;
    background-color: var(--white);
}

.portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.portfolio h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--danger), var(--primary), var(--success));
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--light);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    background: var(--white);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 1%;
    left: 1%;
    right: 1%;
    bottom: 1%;
    border: 15px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

.portfolio-item:hover::before {
    opacity: 1;
    transform: scale(1.05);
    background: radial-gradient(circle, rgba(34, 36, 41, 0.7), rgba(34, 36, 41, 0.9));
    border-image: linear-gradient(45deg, rgba(255, 0, 150, 0.9), rgba(0, 204, 255, 0.9));
    border-image-slice: 1;
}

.portfolio-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.02);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-icon {
    color: orange;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.5s ease-in-out;
}

.portfolio-item:hover .portfolio-icon {
    transform: rotate(90deg);
    color: #ffa500;
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}


.portfolio-caption p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.load-more-container {
    text-align: center;
    margin: 30px 0;
}

/* ===== PRICING SECTION ===== */
.pricing {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.pricing h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--danger), var(--primary), var(--success));
}

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    width: 270px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-header {
    background: var(--primary);
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
}

.pricing-features {
    padding: 25px;
}

.pricing-features ul {
    list-style: none;
    margin-bottom: 20px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: var(--success);
    margin-right: 10px;
    flex-shrink: 0;
}

.pricing-tags {
    display: flex;
    height: 8px;
}

.pricing-tags .tag-1 {
    flex: 1;
    background: var(--danger);
}

.pricing-tags .tag-2 {
    flex: 1;
    background: var(--primary);
}

.pricing-tags .tag-3 {
    flex: 1;
    background: var(--success);
}

.pricing-cta {
    padding: 25px 25px 25px;
}

/* Contenedor principal de pricing */
.pricing-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.next-trip-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: var(--white);
    padding: 12px 20px; /* Reducido de 20px 30px */
    border-radius: 10px; /* Reducido de 15px */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem; /* Reducido de 1.3rem */
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    min-width: 160px; /* Reducido de 200px */
    justify-content: center;
    height: fit-content;
    align-self:center ;
}

.next-trip-btn:hover {
    transform: translateX(5px); /* Efecto más sutil */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.next-trip-btn i {
    font-size: 1.1rem; /* Reducido de 1.5rem */
    transition: transform 0.3s ease;
}

.next-trip-btn:hover i {
    transform: translateX(3px);
}

/* ===== TEAM SECTION - CON VELOCIDADES DIFERENTES ===== */
.team {
    padding: 5rem 0;
    background-color: var(--white);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    padding: 20px;
}

.team-member {
    position: relative;
    width: 280px;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .team-img {
    transform: scale(1.1);
}

/* Paneles de información con diferentes velocidades */
.team-info-1,
.team-info-2,
.team-info-3,
.team-info-4,
.team-info-5 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px;
    transform: translateY(100%);
}

/* Velocidades específicas para cada miembro */
.team-info-1 { transition: all 1.8s ease; } /* Francisco - Más lento */
.team-info-2 { transition: all 1s ease; }   /* Eliseo - Medio */
.team-info-3 { transition: all 0.7s ease; } /* Juan - Más rápido */
.team-info-4 { transition: all 1.9s ease; } /* Ruth and EDwin - Más lento */
.team-info-5 { transition: all 1.9s ease; } /* jhonatan - Más lento */

/* Mostrar info al hacer hover */
.team-member:hover .team-info-1,
.team-member:hover .team-info-2,
.team-member:hover .team-info-3,
.team-member:hover .team-info-4,
.team-member:hover .team-info-5 {
    transform: translateY(0);
}

.team-info-1 h3,
.team-info-2 h3,
.team-info-3 h3,
.team-info-4 h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--white);
}

.team-info-1 p,
.team-info-2 p,
.team-info-3 p,
.team-info-4 p,
.team-info-5 p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.team-social a:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 20px;
    text-align: center;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--primary);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-links i {
    margin-right: 10px;
    flex-shrink: 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* ===== POPUP STYLES ===== */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.popup-content {
    max-width: 90%;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.popup-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.popup-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1002;
}

.popup-prev,
.popup-next {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    margin: 0 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-prev:hover,
.popup-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.close-btn:hover {
    color: #ff6b6b;
    background: rgba(0, 0, 0, 0.9);
}

#imageCaption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    max-width: 80%;
}

.image-counter {
    position: absolute;
    top: 20px;
    left: 35px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .pricing-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .next-trip-btn {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-images {
        margin-bottom: 30px;
    }
    
    .pricing-container {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 350px;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .portfolio-grid {
        gap: 15px;
        padding: 15px;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .portfolio-img {
        height: 180px;
    }
    
    .portfolio-icon {
        padding: 12px;
        font-size: 1.2rem;
    }
    
    .portfolio-caption {
        padding: 10px;
    }
    
    .portfolio-caption h3 {
        font-size: 1.1rem;
    }
    
    .portfolio-caption p {
        font-size: 0.8rem;
    }
    
    .popup-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .popup-content img {
        max-height: 65vh;
    }
    
    .popup-prev,
    .popup-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin: 0 10px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .image-counter {
        top: 15px;
        left: 15px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .counter-item {
        flex: 0 0 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .team-member {
        width: 100%;
        max-width: 280px;
    }
}

/* Estilos para validación del formulario */
.is-valid {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25) !important;
}

.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25) !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger);
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Estilos para el spinner del botón */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Estilos para las alertas */
.alert {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}
