/* ========================================
   HERO SECTION
   ======================================== */

.team-hero {
    position: relative;
    z-index: 1;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 20px;
    margin-bottom: 0;
    color: #ffffff;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 30px;
    line-height: 1.2;
    color:#fff;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.btn-primary{
    font-weight: 700;
}
/* ========================================
   STORY SECTION
   ======================================== */

.story-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.story-section .lead {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.8;
    color: #555;
}

/* ========================================
   CORE TEAM SECTION
   ======================================== */

.core-team-section {
    padding: 60px 20px;
    background-color: #f7f7f7;
}

.team-member-row {
    margin-bottom: 25px;
}

.team-member-row:last-child {
    margin-bottom: 60px;
}

.team-member-image {
    padding: 20px;
}

.team-member-image img {
    width: 350px;
    height: 350px;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.team-member-content {
    padding: 30px;
}

.member-name {
    font-size: 28px;
    font-weight: 600;
    color: #004e73;
    margin-bottom: 25px;
    line-height: 1.3;
}

.member-bio p {
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    font-weight: 400;
}

/* Alternate layout for second team member */
.team-member-row.alternate .team-member-content {
    text-align: left;
}

.section-title{
    margin-bottom:20px;
}

/* ========================================
   COORDINATORS CAROUSEL SECTION (Warm & Personal)
   ======================================== */

.coordinators-section-carousel {
    padding: 80px 20px;
    background-color: #c9dfe64f;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(89, 202, 232, 0.05) 0%, transparent 50%), 
        radial-gradient(circle at 80% 80%, rgba(0, 78, 115, 0.05) 0%, transparent 50%)
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    margin-top: 50px;
    padding: 0 60px;
}

.carousel-container {
    overflow: hidden;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 30px;
}

/* Coordinator Card (Warm Design) */
.coordinator-card-carousel {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 350px;
}

.card-inner {
    background: linear-gradient(135deg, #FFFFFF 0%, #f0f9fc 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 78, 115, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #59cae8 0%, #004e73 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 78, 115, 0.25);
    border-color: #59cae8;
}

.card-inner:hover::before {
    transform: scaleX(1);
}

/* Circular Photo */
.coordinator-photo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #59cae8;
    box-shadow: 0 8px 20px rgba(89, 202, 232, 0.3);
    transition: all 0.4s ease;
}

.card-inner:hover .coordinator-photo-wrapper {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(89, 202, 232, 0.4);
    border-color: #004e73;
}

.coordinator-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography */
.coordinator-name-carousel {
    font-size: 26px;
    font-weight: 700;
    color: #004e73;
    margin-bottom: 10px;
    line-height: 1.2;
}

.coordinator-tagline {
    font-size: 15px;
    font-style: italic;
    color: #3a9bb8;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 42px;
}

.coordinator-essence {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 48px;
}

/* Conocer Button (Warm Style) */
.btn-conocer {
    background-color: #59cae8;
    color: #FFFFFF;
    border: 2px solid #59cae8;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(89, 202, 232, 0.3);
}

.btn-conocer:hover {
    background-color: #FFFFFF;
    color: #004e73;
    border-color: #004e73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 78, 115, 0.4);
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FFFFFF;
    border: 2px solid #59cae8;
    color: #004e73;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 78, 115, 0.2);
    z-index: 10;
}

.carousel-nav:hover:not(:disabled) {
    background-color: #59cae8;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 78, 115, 0.3);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Carousel Dots */
.carousel-dots {
    text-align: center;
    margin-top: 40px;
}

.carousel-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D4D4D4;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
    background-color: #3a9bb8;
    transform: scale(1.2);
}

.carousel-dots .dot.active {
    background-color: #59cae8;
    width: 30px;
    border-radius: 6px;
}

/* Full-Screen Overlay */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 62, 62, 0.92);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #f0f9fc 100%);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: overlaySlideIn 0.4s ease;
}

@keyframes overlaySlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #004e73;
    color: #FFFFFF;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 78, 115, 0.3);
    z-index: 10;
}

.overlay-close:hover {
    background: #59cae8;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 78, 115, 0.5);
}

.overlay-inner {
    display: flex;
    padding: 50px;
    gap: 40px;
}

.overlay-left {
    flex: 0 0 250px;
    text-align: center;
}

.overlay-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #59cae8;
    box-shadow: 0 10px 30px rgba(89, 202, 232, 0.3);
    margin-bottom: 20px;
}

.overlay-name {
    font-size: 28px;
    font-weight: 700;
    color: #004e73;
    margin-bottom: 10px;
    line-height: 1.2;
}

.overlay-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    color: #3a9bb8;
    margin-top: 10px;
}

.overlay-right {
    flex: 1;
    padding-right: 20px;
}

.overlay-bio {
    font-size: 16px;
    line-height: 1.8;
    color: #3E3E3E;
}

.overlay-bio p {
    margin-bottom: 20px;
}

.overlay-bio p:last-child {
    margin-bottom: 0;
}

.overlay-bio strong {
    color: #004e73;
    font-weight: 600;
}

.overlay-bio em {
    color: #59cae8;
    font-style: italic;
}

/* ========================================
   HOW WE TRAVEL SECTION
   ======================================== */

.how-we-travel-section {
    padding: 80px 20px;
    background-color: #f7f7f7;
}

.how-we-travel-section .section-title {
    color: #004e73;
    margin-bottom: 50px;
}

/* Polaroid Grid Layout */
.polaroid-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

/* Polaroid Card Style */
.polaroid {
    background: #fff;
    padding: 18px 18px 24px 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 10px 40px rgba(0, 0, 0, 0.15);
    width: 340px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.polaroid:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15),
                0 20px 60px rgba(0, 0, 0, 0.2);
    transform: rotate(0deg) scale(1.05) !important;
    z-index: 10;
}

.polaroid-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.polaroid:hover .polaroid-image img {
    transform: scale(1.1);
}

.polaroid-caption {
    padding: 15px 5px 5px 5px;
    text-align: center;
}

.polaroid-caption h4 {
    font-size: 18px;
    font-weight: 700;
    color: #004e73;
    margin-bottom: 8px;
    font-size: 22px;
}

.polaroid-caption p {
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    margin-bottom: 0;
}

/* ========================================
   WHO WE SERVE SECTION
   ======================================== */

.who-we-serve-section {
    padding: 80px 20px;
    background-color: #f7f7f7;
}

.pain-point {
    padding: 30px;
    background-color: #ffffff;
    border-left: 4px solid #59cae8;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pain-point:hover {
    border-left-color: #004e73;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateX(5px);
}

.pain-point h4 {
    font-size: 20px;
    font-weight: 600;
    color: #004e73;
    margin-bottom: 15px;
}

.pain-point i {
    margin-right: 10px;
    color: #59cae8;
}

.pain-point p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

/* ========================================
   DIFFERENTIATORS SECTION
   ======================================== */

.differentiators-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.differentiator {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.differentiator:hover {
    transform: translateY(-5px);
}

.diff-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #59cae8, #004E73);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    transition: transform 0.3s ease;
}

.differentiator h4 {
    font-size: 20px;
    font-weight: 600;
    color: #004e73;
    margin-bottom: 15px;
}

.differentiator p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

/* ========================================
   SOCIAL PROOF SECTION
   ======================================== */

.social-proof-section {
    padding: 80px 20px;
    background-color: #004e73;
    color: #ffffff;
}

.social-proof-section .section-title {
    color: #ffffff;
}

.testimonial {
    background-color: rgba(255,255,255,0.1);
    border-left: 4px solid #59cae8;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    color: #ffffff;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.testimonial p {
    margin-bottom: 0;
}

/* ========================================
   VALUES SECTION - TAG CLOUD
   ======================================== */

.values-section {
    padding: 80px 20px 60px 20px;
    background-color: #fff;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px 20px;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px;
}

.tag {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, #59cae8 0%, #3a9bb8 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    cursor: default;
    transform: rotate(var(--rotation, 0deg));
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 3px 10px rgba(0, 78, 115, 0.2);
    position: relative;
}

.tag:hover {
    transform: rotate(0deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 78, 115, 0.35);
    z-index: 10;
}

/* Size variations */
.tag-sm {
    font-size: 14px;
    padding: 8px 18px;
}

.tag-md {
    font-size: 17px;
    padding: 10px 22px;
}

.tag-lg {
    font-size: 21px;
    padding: 12px 28px;
}

.tag-xl {
    font-size: 26px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #004e73 0%, #006994 100%);
}

/* Color variations for visual interest */
.tag:nth-child(odd) {
    background: linear-gradient(135deg, #59cae8 0%, #3a9bb8 100%);
}

.tag:nth-child(even) {
    background: linear-gradient(135deg, #004e73 0%, #006994 100%);
}

.tag:nth-child(3n) {
    background: linear-gradient(135deg, #3a9bb8 0%, #004e73 100%);
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */

.final-cta-section {
    padding: 175px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://aventurateaviajar.com/library/cta-background.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-text {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.btn-cta {
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 600;
    background-color: #ffffff;
    color: #B53471;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    background-color: #004e73;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}



/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and below */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .member-name {
        font-size: 24px;
    }

    .coordinator-name {
        font-size: 20px;
    }

    .team-member-row.alternate .team-member-content {
        text-align: left;
    }

    .team-member-image img {
        width: 300px;
        height: 300px;
    }

    /* Carousel Tablet Adjustments */
    .carousel-wrapper {
        padding: 0 55px;
    }

    .coordinator-card-carousel {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }

    .coordinator-name-carousel {
        font-size: 24px;
    }

    .coordinator-tagline {
        font-size: 14px;
    }

    .coordinator-essence {
        font-size: 14px;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .team-hero {
        min-height: 400px;
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .story-section {
        padding: 50px 20px;
    }

    .story-section .lead {
        font-size: 18px;
    }

    .core-team-section,
    .coordinators-section,
    .how-we-travel-section,
    .who-we-serve-section,
    .differentiators-section,
    .social-proof-section,
    .values-section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .team-member-row {
        margin-bottom: 60px;
    }

    .team-member-image {
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .team-member-image img {
        width: 250px;
        height: 250px;
    }

    .team-member-content {
        padding: 20px 0;
    }

    .member-name {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .member-bio p {
        font-size: 15px;
    }

    /* Polaroid Mobile Adjustments */
    .polaroid-grid {
        gap: 25px;
    }

    .polaroid {
        width: 100%;
        max-width: 320px;
        transform: rotate(0deg) !important;
    }

    .polaroid-image {
        height: 220px;
    }

    .polaroid-caption h4 {
        font-size: 20px;
    }

    .polaroid-caption p {
        font-size: 13px;
    }

    /* Carousel Mobile Adjustments */
    .carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .coordinator-card-carousel {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .card-inner {
        padding: 30px 20px;
    }

    .coordinator-photo-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }

    .coordinator-name-carousel {
        font-size: 22px;
    }

    .coordinator-tagline {
        font-size: 14px;
        min-height: auto;
    }

    .coordinator-essence {
        font-size: 14px;
        min-height: auto;
    }

    .btn-conocer {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Overlay Mobile Adjustments */
    .overlay-inner {
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
    }

    .overlay-left {
        flex: none;
    }

    .overlay-photo {
        width: 150px;
        height: 150px;
    }

    .overlay-name {
        font-size: 24px;
    }

    .overlay-subtitle {
        font-size: 14px;
    }

    .overlay-right {
        padding-right: 0;
    }

    .overlay-bio {
        font-size: 15px;
    }

    .carousel-dots {
        margin-top: 30px;
    }

    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dots .dot.active {
        width: 24px;
    }

    .travel-feature,
    .pain-point,
    .differentiator {
        padding: 20px;
        margin-bottom: 20px;
    }

    .diff-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .testimonial {
        font-size: 16px;
        padding: 20px;
        min-height: auto;
    }

    /* Tag Cloud Mobile */
    .tag-cloud {
        gap: 10px 12px;
        padding: 10px;
    }

    .tag-sm {
        font-size: 12px;
        padding: 6px 14px;
    }

    .tag-md {
        font-size: 14px;
        padding: 8px 16px;
    }

    .tag-lg {
        font-size: 16px;
        padding: 9px 20px;
    }

    .tag-xl {
        font-size: 18px;
        padding: 10px 22px;
    }

    .tag {
        transform: rotate(0deg) !important;
    }

    .final-cta-section {
        padding: 60px 20px;
    }

    .cta-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .cta-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .btn-cta {
        padding: 15px 40px;
        font-size: 18px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .cta-title {
        font-size: 24px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .team-hero,
    .how-we-travel-section,
    .final-cta-section {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .btn {
        display: none;
    }

    .team-member-image img,
    .coordinator-image img {
        box-shadow: none;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus states for keyboard navigation */
.coordinator-card:focus,
.btn:focus {
    outline: 3px solid #59cae8;
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.member-bio p,
.coordinator-bio p,
.pain-point p,
.differentiator p {
    color: #333;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}
