@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Quicksand:wght@600;700&display=swap');

/* =============================================
   DATSERVIC - PRODUCT TEMPLATE STYLES v1.1
   Stratous Brand: #009EE2 · #662482 · #6F6F6E
   Fonts: Righteous (H1/H2) · Quicksand Bold
   ============================================= */

/* =============================================
   CARDS (Grid y Slider)
   ============================================= */

:root {
    --dats-blue: #009EE2;
    --dats-purple: #662482;
    --dats-gray: #6F6F6E;
    --dats-grad: linear-gradient(135deg, #009EE2, #662482);
    --dats-font: 'Quicksand', sans-serif;
    --dats-heading: 'Righteous', sans-serif;
    --dats-dark: #1a1a2e;
}

/* Tipografía global */
.dats-grid, .dats-slider-container, .dats-card,
.dats-form-section, .dats-description-section,
.single-product .summary {
    font-family: var(--dats-font) !important;
    font-weight: 700 !important;
}

.dats-grid {
    display: grid;
    grid-template-columns: repeat(var(--dats-cols, 3), 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto 30px;
}

.dats-grid-titulo {
    font-size: 28px;
    font-family: var(--dats-heading);
    font-weight: 400;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 25px;
    text-align: center;
}

/* Card individual */
.dats-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background: #fff;
    height: 100%;
    position: relative;
}

.dats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.dats-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit !important;
    position: relative;
}

/* Imagen de la card */
.dats-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.dats-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.dats-card:hover .dats-card-img img {
    transform: scale(1.08);
}

/* Body de la card (color) */
.dats-card-body {
    padding: 20px;
    color: #fff;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 130px;
}

.dats-card-title {
    font-size: 17px;
    font-family: var(--dats-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #fff !important;
}

.dats-card-duration {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.dats-card-duration strong {
    font-weight: 700;
    opacity: 0.85;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dats-card-duration span {
    font-weight: 500;
    font-size: 14px;
}

/* Flecha circular */
.dats-card-arrow {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s ease;
}

/* Hover overlay: cubre toda la card con el color */
.dats-card-hover-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border-radius: 16px;
}

.dats-card:hover .dats-card-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.dats-card-hover-overlay .dats-hover-title {
    font-size: 20px;
    font-family: var(--dats-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.3;
    color: #fff !important;
    margin: 0 0 14px 0;
}

.dats-card-hover-overlay .dats-hover-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
    opacity: 0.92;
    margin: 0 0 20px 0;
    flex: 1;
}

.dats-card-hover-overlay .dats-hover-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
}

.dats-card-hover-overlay .dats-hover-link-arrow {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s;
}

.dats-card:hover .dats-hover-link-arrow {
    background: rgba(255,255,255,0.4);
}

/* Ocultar desc anterior (ya no se usa inline) */
.dats-card-hover-desc {
    display: none;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    :root {
    --dats-blue: #009EE2;
    --dats-purple: #662482;
    --dats-gray: #6F6F6E;
    --dats-grad: linear-gradient(135deg, #009EE2, #662482);
    --dats-font: 'Quicksand', sans-serif;
    --dats-heading: 'Righteous', sans-serif;
    --dats-dark: #1a1a2e;
}

/* Tipografía global */
.dats-grid, .dats-slider-container, .dats-card,
.dats-form-section, .dats-description-section,
.single-product .summary {
    font-family: var(--dats-font) !important;
    font-weight: 700 !important;
}

.dats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
    --dats-blue: #009EE2;
    --dats-purple: #662482;
    --dats-gray: #6F6F6E;
    --dats-grad: linear-gradient(135deg, #009EE2, #662482);
    --dats-font: 'Quicksand', sans-serif;
    --dats-heading: 'Righteous', sans-serif;
    --dats-dark: #1a1a2e;
}

/* Tipografía global */
.dats-grid, .dats-slider-container, .dats-card,
.dats-form-section, .dats-description-section,
.single-product .summary {
    font-family: var(--dats-font) !important;
    font-weight: 700 !important;
}

.dats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .dats-card-title {
        font-size: 15px;
    }
    
    .dats-card-body {
        padding: 14px;
        min-height: 110px;
    }
}

@media (max-width: 480px) {
    :root {
    --dats-blue: #009EE2;
    --dats-purple: #662482;
    --dats-gray: #6F6F6E;
    --dats-grad: linear-gradient(135deg, #009EE2, #662482);
    --dats-font: 'Quicksand', sans-serif;
    --dats-heading: 'Righteous', sans-serif;
    --dats-dark: #1a1a2e;
}

/* Tipografía global */
.dats-grid, .dats-slider-container, .dats-card,
.dats-form-section, .dats-description-section,
.single-product .summary {
    font-family: var(--dats-font) !important;
    font-weight: 700 !important;
}

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

/* =============================================
   SLIDER
   ============================================= */

.dats-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto 30px;
    padding: 0 50px;
    box-sizing: border-box;
}

.dats-slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

.dats-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.dats-slider-item {
    flex: 0 0 calc(100% / var(--dats-visible));
    min-width: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.dats-slider-item .dats-card {
    margin: 0;
}

/* Flechas slider */
.dats-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #009EE2;
    background: #fff;
    color: #009EE2;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.dats-slider-arrow:hover {
    background: linear-gradient(135deg, #009EE2, #662482);
    border-color: transparent;
    color: #fff;
}

.dats-slider-prev { left: 0; }
.dats-slider-next { right: 0; }

@media (max-width: 768px) {
    .dats-slider-container {
        padding: 0 38px;
    }
    
    .dats-slider-item {
        flex: 0 0 50%;
    }
    
    .dats-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .dats-slider-item {
        flex: 0 0 100%;
    }
}

/* =============================================
   PRODUCTO ÚNICO
   ============================================= */

/* Layout principal */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.single-product div.product .woocommerce-product-gallery {
    width: 55% !important;
    float: none !important;
    flex-shrink: 0;
}

.single-product div.product .woocommerce-product-gallery img {
    border-radius: 16px;
    width: 100%;
    height: auto;
}

.single-product div.product .summary {
    width: 40% !important;
    float: none !important;
    flex: 1;
    min-width: 0;
}

.single-product div.product .product_title {
    font-size: 28px;
    font-family: var(--dats-heading);
    font-weight: 400;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.2;
    margin-bottom: 15px;
}

.single-product div.product .woocommerce-tabs,
.single-product .related.products,
.single-product .up-sells {
    display: none !important;
}

.single-product div.product::after {
    content: "";
    display: table;
    clear: both;
}

/* Extracto */
.dats-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Info Grid (Modalidad, Turno, etc.) */
.dats-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.dats-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.dats-info-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dats-info-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.dats-info-box strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
    margin-bottom: 2px;
}

.dats-info-box span {
    display: block;
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 600;
}

/* Botones de acción */
.dats-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.dats-btn {
    display: block;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.dats-btn-primary {
    color: #fff !important;
}

.dats-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dats-btn-whatsapp {
    background: #25d366;
    color: #fff !important;
}

.dats-btn-whatsapp:hover {
    background: #128c7e;
    color: #fff !important;
}

.dats-btn-outline {
    background: none;
    border: 2px solid #ddd;
    color: #333 !important;
}

.dats-btn-outline:hover {
    border-color: #333;
    background: #f8f8f8;
}

/* Formulario ¿Quieres saber más? */
.dats-form-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    margin-top: 5px;
}

.dats-form-section h3 {
    font-size: 20px;
    font-family: var(--dats-heading);
    font-weight: 400;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 6px 0;
}

.dats-form-section p {
    font-size: 14px;
    color: #666;
    margin: 0 0 18px 0;
}

.dats-form-row {
    margin-bottom: 12px;
}

.dats-form-row input,
.dats-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background: #fff;
}

.dats-form-row input:focus,
.dats-form-row textarea:focus {
    outline: none;
    border-color: #009EE2;
    box-shadow: 0 0 0 3px rgba(0,158,226,.1);
}

/* Alerta éxito */
.dats-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
}

/* Descripción del programa */
.dats-description-section {
    clear: both;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
}

.dats-section-title {
    font-size: 24px;
    font-family: var(--dats-heading);
    font-weight: 400;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-bottom: 10px;
    border-bottom: 3px solid #009EE2;
    display: inline-block;
    margin-bottom: 20px;
}

.dats-description-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.dats-description-body h2,
.dats-description-body h3,
.dats-description-body h4 {
    font-family: var(--dats-heading);
    color: #1a1a2e;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.dats-description-body ul,
.dats-description-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.dats-description-body li {
    margin-bottom: 8px;
}

.dats-description-body img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

/* Responsive Producto Único */
@media (max-width: 768px) {
    .single-product div.product {
        flex-direction: column;
    }
    
    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product .summary {
        width: 100% !important;
    }
    
    .single-product div.product .product_title {
        font-size: 22px;
    }
    
    .dats-info-grid {
        grid-template-columns: 1fr;
    }
    
    .dats-form-section {
        padding: 18px;
    }
}

/* =============================================
   NO PRODUCTOS
   ============================================= */
.dats-no-products {
    text-align: center;
    color: #888;
    font-size: 15px;
    padding: 30px;
}
