/*
Theme Name: OceanWP Child
Theme URI: https://oceanwp.org/
Description: Child theme for OceanWP theme
Author: carnivalmeatlab.com
Author URI: https://www.carnivalmeatlab.com
Template: oceanwp
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oceanwp-child
*/

/* 
====================================
  Estilos personalizados aquí
====================================
Añade tus customizaciones CSS debajo de este comentario.
El tema padre (OceanWP) se cargará automáticamente.
*/

/* Ejemplo de customización (puedes borrar esto)
.site-header {
    background-color: #your-color;
}
*/

/* ====================================================================
   Calendario de "Fecha de Envío" incrustado (checkout) — estilo premium
   Colores acordes a los botones de franja horaria (.cml-time-btn)
   ==================================================================== */

.woocommerce-checkout #e_deliverydate {
    display: none !important;
}

.woocommerce-checkout .ui-datepicker-inline {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 360px;
    box-shadow: none !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-header {
    background: #630d16;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 6px;
    margin-bottom: 6px;
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: capitalize;
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-prev,
.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-next {
    top: 8px;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.9;
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-prev:hover,
.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    border: none;
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-calendar th {
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 0;
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-calendar td {
    padding: 2px;
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-calendar .ui-state-default {
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    border: 1px solid transparent;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-calendar .ui-state-default:hover {
    border-color: #630d16;
    color: #630d16;
    background: rgba(99, 13, 22, 0.06);
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-today .ui-state-default {
    border-color: #630d16;
    color: #630d16;
}

.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-current-day .ui-state-active {
    background: linear-gradient(135deg, #630d16 0%, #4a0a10 100%);
    border-color: #630d16;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 13, 22, 0.3);
}

.woocommerce-checkout .ui-datepicker-inline .ui-state-disabled,
.woocommerce-checkout .ui-datepicker-inline .ui-datepicker-unselectable {
    opacity: 0.4;
    cursor: not-allowed;
}

.woocommerce-checkout .ui-datepicker-inline .holidays .ui-state-default,
.woocommerce-checkout .ui-datepicker-inline .booked_dates .ui-state-default {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    text-decoration: line-through;
}

@media (max-width: 767px) {
    .woocommerce-checkout .ui-datepicker-inline {
        max-width: 100%;
        padding: 10px;
    }
    .woocommerce-checkout .ui-datepicker-inline .ui-datepicker-calendar .ui-state-default {
        padding: 10px 0;
        font-size: 14px;
    }
}

/* ====================================================================
   Titular animado de la Home — reemplazo del widget Pro "animated-headline"
   Animación 100% CSS (sin JS), palabras rotando en el color corporativo.
   Ajustar la cantidad de reglas nth-child/animation-delay si cambia el
   número de palabras, y repartir la duración total (9s) en partes iguales.
   ==================================================================== */

.cml-animated-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.cml-rotating-words {
    position: relative;
    display: inline-block;
    height: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
}

.cml-rotating-words span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    color: #630d16;
    font-weight: 800;
    animation: cml-word-rotate 9s infinite;
}

.cml-rotating-words span:nth-child(1) { animation-delay: 0s; }
.cml-rotating-words span:nth-child(2) { animation-delay: 3s; }
.cml-rotating-words span:nth-child(3) { animation-delay: 6s; }

@keyframes cml-word-rotate {
    0%        { opacity: 0; transform: translateY(10px); }
    5%, 28%   { opacity: 1; transform: translateY(0); }
    33%, 100% { opacity: 0; transform: translateY(-10px); }
}
