/* ===================================
   GLOBAL FIX - PREVENIR OVERFLOW
=================================== */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

/* ========================
   PLANES STYLES - DISEÑO PROFESIONAL
======================== */

body {
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
    color: #2c3e2e;
    background-color: #ffffff;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

/* ========================
   HERO SECTION
======================== */
.planes-hero {
    background: linear-gradient(135deg, #3a4a2c 0%, #556345 50%, #6a7c58 100%);
    padding: 120px 5vw;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.planes-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.planes-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.8s ease-out;
}

.planes-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4vw;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.planes-hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3vw;
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-decoration {
    position: relative;
    height: 50px;
    margin-top: 30px;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: white;
    top: -80px;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: white;
    top: -50px;
    right: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

/* ========================
   TODOS LOS PLANES
======================== */
.all-plans-section {
    padding: 80px 5vw;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: #2c3e2e;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.all-plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.all-plan-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.all-plan-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: #556345;
}

.all-plan-card.featured {
    transform: scale(1.02);
    border-color: #3a4a2c;
    box-shadow: 0 20px 60px rgba(58, 74, 44, 0.2);
}

.all-plan-card.featured:hover {
    transform: scale(1.02) translateY(-15px);
    box-shadow: 0 25px 70px rgba(58, 74, 44, 0.3);
}

.plan-badge-featured {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ffd166 0%, #ffb700 100%);
    color: #2c3e2e;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 5px 15px rgba(255, 209, 102, 0.3);
    z-index: 2;
}

.all-plan-image {
    width: 100%;
    height: 220px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.all-plan-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.all-plan-card:hover .all-plan-img {
    transform: scale(1.05);
}

.all-plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #556345 0%, #6a7c58 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 15px 20px 10px;
    font-family: 'Montserrat', sans-serif;
    align-self: flex-start;
}

.all-plan-content {
    padding: 0 20px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.all-plan-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    color: #2c3e2e;
    font-weight: 700;
}

.all-plan-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: #3a4a2c;
    margin: 0 0 10px;
}

.all-plan-price span {
    font-size: 0.6em;
    color: #999;
    font-weight: 400;
    margin-left: 5px;
}

.all-plan-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    color: #666;
    margin: 0 0 20px;
    font-weight: 300;
}

.all-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.all-plan-features li {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-weight: 700;
    font-size: 1.2em;
    color: #556345;
    min-width: 20px;
}

.all-plan-features li:has(.feature-icon:contains("✗")) {
    opacity: 0.5;
}

.all-plan-btn {
    background: linear-gradient(135deg, #3a4a2c 0%, #556345 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.all-plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(58, 74, 44, 0.3);
    background: linear-gradient(135deg, #2c3a24 0%, #445132 100%);
}

.all-plan-btn.featured {
    background: linear-gradient(135deg, #ffd166 0%, #ffb700 100%);
    color: #2c3e2e;
    box-shadow: 0 5px 15px rgba(255, 209, 102, 0.3);
}

.all-plan-btn.featured:hover {
    background: linear-gradient(135deg, #ffb700 0%, #ff9800 100%);
    box-shadow: 0 10px 30px rgba(255, 209, 102, 0.4);
    color: white;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.all-plan-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ========================
   VARIEDADES SECTION
======================== */
.varieties-section {
    padding: 80px 5vw;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    max-width: 1400px;
    margin: 0 auto;
}

.varieties-container {
    display: grid;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.variety-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
}

.variety-image {
    flex: 0 0 300px;
    height: 300px;
    background: linear-gradient(135deg, #6a7c58 0%, #556345 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.coffee-bean-large {
    width: 150px;
    height: 90px;
    background: #3a4a2c;
    border-radius: 50%;
    position: relative;
    transform: rotate(30deg);
}

.coffee-bean-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 1px;
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%);
}

.variety-info {
    flex: 1;
}

.variety-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #2c3e2e;
    margin: 0 0 20px;
    font-weight: 700;
}

.variety-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.variety-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.variety-details li {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    color: #555;
}

.variety-details strong {
    color: #2c3e2e;
    font-weight: 600;
}

/* ========================
   COMPARATIVA TABLE
======================== */
.planes-comparison {
    padding: 100px 5vw;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
}

.planes-comparison h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    text-align: center;
    color: #2c3e2e;
    margin-bottom: 60px;
    font-weight: 700;
}

.comparison-table {
    display: grid;
    gap: 0;
    border-radius: 15px;
    overflow-x: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr repeat(6, 1fr);
    border-bottom: 1px solid #e0e0e0;
}

.table-row:last-child {
    border-bottom: none;
}

.header-row {
    background: linear-gradient(135deg, #3a4a2c 0%, #556345 100%);
    color: white;
}

.table-cell {
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.table-row:last-child .table-cell {
    border-right: 1px solid #e0e0e0;
}

.table-cell:last-child {
    border-right: none;
}

.header-row .table-cell {
    border-right-color: rgba(255,255,255,0.2);
    border-bottom: none;
}

.table-cell.feature {
    display: flex;
    align-items: center;      /* centra verticalmente */
    justify-content: center;
    text-align: left;
    font-weight: 600;
    color: #2c3e2e;
    line-height: 1.4;
    text-align: center;
}

.header-row .table-cell.feature {
    color: white;
}

.table-row:nth-child(even):not(.header-row) {
    background-color: #f9f9f9;
}

.table-row:hover:not(.header-row) {
    background-color: #f0f5f0;
}

/* ========================
   FAQ SECTION
======================== */
.planes-faq {
    padding: 100px 5vw;
    max-width: 900px;
    margin: 0 auto;
}

.planes-faq h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    text-align: center;
    color: #2c3e2e;
    margin-bottom: 60px;
    font-weight: 700;
}

.faq-container {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #556345;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2c3e2e;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #3a4a2c 0%, #556345 100%);
    color: white;
}

.faq-icon {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 25px;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    color: #555;
    line-height: 1.8;
}

/* ========================
   CTA SECTION
======================== */
.planes-cta {
    background: linear-gradient(135deg, #3a4a2c 0%, #556345 50%, #6a7c58 100%);
    padding: 100px 5vw;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.planes-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.cta-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    margin: 0 0 40px 0;
    opacity: 0.9;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 40px;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.cta-btn.primary {
    background: white;
    color: #3a4a2c;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
}

.cta-btn.secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* ========================
   ANIMACIONES
======================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.all-plan-card {
    animation: slideUp 0.6s ease-out;
}

.all-plan-card:nth-child(1) { animation-delay: 0.1s; }
.all-plan-card:nth-child(2) { animation-delay: 0.2s; }
.all-plan-card:nth-child(3) { animation-delay: 0.3s; }
.all-plan-card:nth-child(4) { animation-delay: 0.4s; }
.all-plan-card:nth-child(5) { animation-delay: 0.5s; }
.all-plan-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================
   MEDIA QUERIES
======================== */
@media (max-width: 1200px) {
    .variety-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .variety-image {
        flex: 0 0 250px;
        height: 250px;
    }
}

@media (max-width: 1024px) {
    .all-plans-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .all-plan-card.featured {
        transform: scale(1);
    }
    
    .all-plan-card.featured:hover {
        transform: translateY(-15px);
    }
    
    .table-row {
        grid-template-columns: 1.5fr repeat(6, 1fr);
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .planes-hero {
        padding: 60px 20px;
        text-align: center;
    }
    
    .planes-hero-title {
        font-size: 2.5em;
    }
    
    .planes-hero-subtitle {
        font-size: 1em;
    }
    
    .all-plans-section {
        padding: 50px 16px;
    }
    
    .all-plans-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header {
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2em;
    }
    
    .all-plan-image {
        height: 180px;
        padding: 12px;
    }
    
    .all-plan-img {
        max-width: 90%;
        max-height: 90%;
    }
    
    .all-plan-content {
        padding: 0 16px 20px;
        text-align: center;
    }
    
    .all-plan-badge {
        align-self: center;
        margin: 10px auto 8px;
    }
    
    .all-plan-name {
        font-size: 1.5em;
        text-align: center;
    }
    
    .all-plan-price {
        font-size: 2em;
        text-align: center;
    }
    
    .all-plan-features {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .all-plan-features li {
        font-size: 0.9em;
        justify-content: center;
    }
    
    .all-plan-btn {
        padding: 11px 22px;
        font-size: 0.9em;
        margin: 0 auto;
        display: block;
        width: fit-content;
    }
    
    .variety-info h3 {
        font-size: 1.8em;
        text-align: center;
    }
    
    .planes-comparison {
        padding: 50px 16px;
    }
    
    .planes-comparison h2 {
        font-size: 2em;
        text-align: center;
    }
    
    .table-cell {
        padding: 12px 8px;
        font-size: 0.85em;
    }
    
    .planes-faq {
        padding: 50px 16px;
    }
    
    .planes-faq h2 {
        font-size: 2em;
        text-align: center;
    }
    
    .planes-cta {
        padding: 50px 16px;
    }
    
    .cta-content h2 {
        font-size: 2em;
        text-align: center;
    }
    
    .cta-content p {
        font-size: 1em;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .cta-btn {
        padding: 11px 26px;
        font-size: 0.9em;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .planes-hero {
        padding: 40px 12px;
    }
    
    .planes-hero-title {
        font-size: 2em;
    }
    
    .planes-hero-subtitle {
        font-size: 0.9em;
    }
    
    .all-plans-section {
        padding: 40px 12px;
    }
    
    .all-plan-image {
        height: 150px;
        padding: 10px;
    }
    
    .all-plan-content {
        padding: 0 12px 18px;
        text-align: center;
    }
    
    .all-plan-features li {
        font-size: 0.85em;
        justify-content: center;
    }
    
    .all-plan-btn {
        padding: 10px 20px;
        font-size: 0.85em;
        margin: 0 auto;
    }
    
    .faq-question {
        padding: 12px;
    }
    
    .faq-answer p {
        padding: 12px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn {
        width: fit-content;
        margin: 0 auto;
    }
}
    
    .variety-card {
        padding: 20px;
    }
    
    .variety-image {
        flex: 0 0 200px;
        height: 200px;
    }
}

.planes-hero {
    padding: 40px 5vw 30px; /* 40px arriba, 5vw laterales, 30px abajo */
    min-height: 250px;
}

.planes-hero-content {
    padding: 0; /* Eliminar padding interno si existe */
}

@media (max-width: 1200px) {
    .planes-hero {
        min-height: 120px; /* Ajustado para tablet grande */
    }
    
    .planes-hero-title {
        font-size: 3.5em; /* Mantener grande en tablets */
    }
    
    .planes-hero-subtitle {
        font-size: 1.4em; /* Mantener grande en tablets */
    }
}

@media (max-width: 992px) {
    .planes-hero {
        min-height: 110px; /* Ajustado para tablet */
        padding: 35px 5vw 25px;
    }
    
    .planes-hero-title {
        font-size: 3.2em; /* Mantener tamaño grande */
        margin-bottom: 8px;
    }
    
    .planes-hero-subtitle {
        font-size: 1.3em; /* Mantener tamaño legible */
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .planes-hero {
        padding: 30px 5vw 20px; /* Reducir padding pero mantener texto grande */
        min-height: 100px;
    }
    
    .planes-hero-title {
        font-size: 2.8em !important; /* Forzar tamaño grande en móviles */
        margin: 0 0 8px 0;
        line-height: 1.1;
    }
    
    .planes-hero-subtitle {
        font-size: 1.2em !important; /* Forzar tamaño legible */
        font-weight: 400;
        max-width: 90%;
        line-height: 1.3;
    }
    
    /* Reducir los círculos decorativos */
    .hero-decoration {
        height: 20px;
        margin-top: 10px;
    }
    
    .circle-1 {
        width: 80px;
        height: 80px;
        top: -30px;
    }
    
    .circle-2 {
        width: 60px;
        height: 60px;
        top: -20px;
    }
}

@media (max-width: 576px) {
    .planes-hero {
        padding: 25px 4vw 15px; /* Menos padding pero texto aún grande */
        min-height: 90px;
    }
    
    .planes-hero-title {
        font-size: 2.3em !important; /* Tamaño grande para móviles pequeños */
        margin: 0 0 6px 0;
    }
    
    .planes-hero-subtitle {
        font-size: 1.1em !important; /* Tamaño legible para móviles pequeños */
        max-width: 95%;
        font-weight: 400;
    }
    
    .hero-decoration {
        height: 15px;
        margin-top: 8px;
    }
    
    .circle-1 {
        width: 60px;
        height: 60px;
        top: -20px;
    }
    
    .circle-2 {
        width: 45px;
        height: 45px;
        top: -15px;
    }
}

@media (max-width: 400px) {
    .planes-hero {
        padding: 20px 3vw 10px; /* Mínimo padding */
        min-height: 80px;
    }
    
    .planes-hero-title {
        font-size: 2em !important; /* Aún legible y prominente */
    }
    
    .planes-hero-subtitle {
        font-size: 1em !important; /* Tamaño mínimo legible */
    }
}