/* =====================================================
   AGROSOIL — Página de Contacto
   Layout: Hero → Tabs Card (pill slider nav + panels)
   ===================================================== */

/* === RESET TEMA PADRE === */
#featured-title { display: none !important; }
#main-content { padding: 0 !important; margin: 0 !important; }

/* =====================================================
   HERO
   ===================================================== */
.ct-hero {
    min-height: 40vh;
    background: linear-gradient(165deg, var(--color-dark, #242e33) 0%, var(--color-bg-dark, #1a1a2e) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 160px 20px 70px;
}

.ct-hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ct-hero-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(128, 188, 0, 0.35);
    animation: ctParticle 18s infinite ease-in-out;
}

.ct-hero-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.ct-hero-particles span:nth-child(2) { left: 25%; animation-delay: 3s; }
.ct-hero-particles span:nth-child(3) { left: 40%; animation-delay: 6s; }
.ct-hero-particles span:nth-child(4) { left: 55%; animation-delay: 2s; }
.ct-hero-particles span:nth-child(5) { left: 70%; animation-delay: 5s; }
.ct-hero-particles span:nth-child(6) { left: 85%; animation-delay: 1s; }

@keyframes ctParticle {
    0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(80vh) scale(1); }
    90% { opacity: 1; }
    95% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

.ct-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(128, 188, 0, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 60%, rgba(57, 166, 222, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(128, 188, 0, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.ct-hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.ct-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(128, 188, 0, 0.15);
    border: 1px solid rgba(128, 188, 0, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.ct-hero-badge svg { stroke: var(--color-primary, #80bc00); }

.ct-hero-badge span {
    color: var(--color-primary-light, #9cd033);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ct-hero-title {
    font-size: clamp(36px, 8vw, 48px);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 16px;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.ct-hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75) !important;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* =====================================================
   TABS SECTION
   ===================================================== */
.ct-tabs-section {
    padding: 60px 0 80px;
    background: var(--color-bg-white, #f6f7f0);
}

.ct-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.ct-tabs-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* =====================================================
   TAB NAV — Blog-style pill slider
   ===================================================== */
.ct-tabs-nav {
    display: inline-flex;
    position: relative;
    background: rgba(240, 242, 235, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 999px;
    padding: 6px;
    margin: 32px auto 0;
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Centered nav wrapper */
.ct-tabs-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sliding colored background */
.ct-tab-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    border-radius: 999px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: none;
}

/* Tab buttons */
.ct-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    color: #666;
    background: transparent;
    border: none;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.ct-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: stroke 0.3s ease;
}

.ct-tab:hover {
    color: #444;
    background: transparent !important;
    background-color: transparent !important;
}

.ct-tab.active,
.ct-tab.active:hover,
.ct-tab.active:focus {
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
}

.ct-tab.active svg {
    stroke: #ffffff;
}

/* =====================================================
   TAB PANELS
   ===================================================== */
.ct-tabs-body {
    width: 100%;
}

.ct-panel {
    display: none;
    padding: 40px;
    animation: ctFadeIn 0.4s ease-out;
}

.ct-panel.active {
    display: block;
}

@keyframes ctFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ct-panel-inner {
    max-width: 100%;
}

/* =====================================================
   PANEL: FORMULARIO
   ===================================================== */
.ct-form-header {
    margin-bottom: 28px;
}

.ct-form-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-primary, #1a1a2e);
    margin: 0 0 8px;
}

.ct-form-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary, #555);
    margin: 0;
    line-height: 1.6;
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ct-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ct-form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary, #555);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ct-input {
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text-primary, #1a1a2e);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    outline: none;
}

.ct-input:focus {
    border-color: var(--color-primary, #80bc00);
    box-shadow: 0 0 0 3px rgba(128, 188, 0, 0.12);
    background: #fff;
}

.ct-input::placeholder { color: #999; }

.ct-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.ct-textarea {
    min-height: 110px;
    resize: vertical;
}

.ct-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--color-primary, #80bc00) 0%, #6a9e00 100%);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    align-self: flex-start;
}

.ct-form-btn:hover {
    opacity: 0.85;
}

/* =====================================================
   PANEL: EQUIPO
   ===================================================== */
.ct-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.ct-team-card {
    background: #f9faf5;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ct-team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.ct-team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-team-avatar svg {
    width: 26px;
    height: 26px;
}

.ct-avatar-green {
    background: rgba(128, 188, 0, 0.12);
}
.ct-avatar-green svg { stroke: var(--color-primary, #80bc00); }

.ct-avatar-blue {
    background: rgba(57, 166, 222, 0.12);
}
.ct-avatar-blue svg { stroke: var(--color-secondary, #39a6de); }

.ct-team-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary, #1a1a2e);
    margin: 0 0 4px;
    line-height: 1.3;
}

.ct-team-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.ct-role-green {
    background: rgba(128, 188, 0, 0.1);
    color: #6a9e00;
}

.ct-role-blue {
    background: rgba(57, 166, 222, 0.1);
    color: #2d8ab5;
}

.ct-team-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ct-team-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-secondary, #555);
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

.ct-team-contact a:hover { color: var(--color-primary, #80bc00); }
.ct-team-contact a svg { flex-shrink: 0; }

/* Quick Info row */
.ct-quick-info {
    display: flex;
    gap: 32px;
    padding: 20px 24px;
    background: #f4f5ef;
    border-radius: 12px;
    margin-bottom: 24px;
}

.ct-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-secondary, #555);
}

.ct-quick-item svg {
    flex-shrink: 0;
    stroke: var(--color-primary, #80bc00);
}

/* Social row */
.ct-social-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ct-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ct-btn-wa {
    background: #25D366;
    color: white !important;
}

.ct-btn-wa:hover {
    background: #1ebe5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    color: white !important;
}

.ct-btn-ig {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c !important;
}

.ct-btn-ig:hover {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.3);
}

/* =====================================================
   PANEL: UBICACIÓN
   ===================================================== */
.ct-location-header {
    text-align: center;
    margin-bottom: 24px;
}

.ct-location-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-primary, #1a1a2e);
    margin: 0 0 8px;
}

.ct-location-header p {
    font-size: 18px;
    color: var(--color-text-secondary, #555);
    margin: 0;
}

.ct-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.ct-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ct-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary-dark, #6a9e00);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.ct-map-link:hover {
    gap: 12px;
    color: var(--color-primary, #80bc00);
}

/* =====================================================
   RESPONSIVE — Tablet
   ===================================================== */
@media (max-width: 768px) {
    .ct-hero {
        min-height: auto;
        padding: 140px 20px 50px;
    }

    .ct-tabs-section {
        padding: 40px 0 60px;
    }

    .ct-tabs-nav {
        flex-direction: column;
        width: calc(100% - 64px);
        max-width: 300px;
        padding: 8px;
        border-radius: 24px;
    }

    .ct-tab {
        font-size: 13px;
        padding: 12px 20px;
        justify-content: center;
    }

    .ct-tab-slider {
        display: block !important;
        left: 8px !important;
        top: 8px !important;
        border-radius: 999px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ct-panel {
        padding: 28px 20px;
    }

    .ct-form-row {
        grid-template-columns: 1fr;
    }

    .ct-form-btn {
        width: 100%;
        justify-content: center;
    }

    .ct-team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ct-team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .ct-team-contact a {
        justify-content: center;
    }

    .ct-quick-info {
        flex-direction: column;
        gap: 12px;
    }

    .ct-social-row {
        flex-direction: column;
        align-items: center;
    }

    .ct-map-wrap {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .ct-hero {
        padding: 130px 16px 40px;
    }

    .ct-hero-badge {
        padding: 7px 14px;
    }

    .ct-hero-badge span {
        font-size: 11px;
    }

    .ct-tabs-card {
        border-radius: 16px;
    }

    .ct-panel {
        padding: 24px 16px;
    }

    .ct-map-wrap {
        height: 200px;
    }
}
