/* ============================================
   DROBEN PHARMA - GRADIENTE ANIMADO HERO
   
   Agregar en:
   - Divi > Opciones del tema > CSS personalizado
   - O en el style.css del child theme
   ============================================ */


:root {
    --teal: #2ABFB3;
    --teal-light: #4ECDC4;
    --teal-bright: #6EE7B7;
    --navy: #1B4F6B;
    --navy-dark: #163B52;
    --white: #FFFFFF;
    --gray-light: #F0FDFB;
    --gray: #6B7280;
    --text-dark: #1F2937;
}


/* Título principal con gradiente animado */
.hero-title-gradient,
.et_pb_section .hero-title-gradient,
#hero-title {
    background: linear-gradient(135deg, 
        #2ABFB3 0%, 
        #6EE7B7 15%,
        #1B4F6B 30%, 
        #4ECDC4 45%,
        #1B4F6B 60%,
        #6EE7B7 75%,
        #2ABFB3 90%,
        #4ECDC4 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientChaos 40s ease-in-out infinite;
    display: inline-block;
}

/* Animación caótica del gradiente */
@keyframes gradientChaos {
    0% {
        background-position: 0% 50%;
    }
    7% {
        background-position: 80% 10%;
    }
    14% {
        background-position: 20% 90%;
    }
    21% {
        background-position: 100% 30%;
    }
    28% {
        background-position: 5% 60%;
    }
    35% {
        background-position: 70% 100%;
    }
    42% {
        background-position: 30% 5%;
    }
    49% {
        background-position: 95% 70%;
    }
    56% {
        background-position: 10% 40%;
    }
    63% {
        background-position: 60% 85%;
    }
    70% {
        background-position: 40% 15%;
    }
    77% {
        background-position: 85% 55%;
    }
    84% {
        background-position: 15% 75%;
    }
    91% {
        background-position: 55% 20%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Asegurar que funcione en módulos de texto Divi */
.et_pb_text h1.hero-title-gradient,
.et_pb_module h1.hero-title-gradient {
    background: linear-gradient(135deg, 
        #2ABFB3 0%, 
        #6EE7B7 15%,
        #1B4F6B 30%, 
        #4ECDC4 45%,
        #1B4F6B 60%,
        #6EE7B7 75%,
        #2ABFB3 90%,
        #4ECDC4 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientChaos 40s ease-in-out infinite;
}

/* ============================================
   ESTILOS ADICIONALES OPCIONALES
   ============================================ */

/* Header fijo con blur */
#main-header,
.et-fixed-header {
    position: fixed !important;
    width: 100%;
    top: 0;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 99999;
}

/* Sombra del header al hacer scroll */
#main-header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Compensar espacio del header fijo */
#page-container {
    padding-top: 80px;
}

/* Fuente DM Sans global */
body,
.et_pb_module,
h1, h2, h3, h4, h5, h6,
p, a, span, li,
input, button, select, textarea {
    font-family: 'DM Sans', sans-serif !important;
}

/* Smooth scroll para toda la página */
html {
    scroll-behavior: smooth;
}

/* ============================================
   EFECTOS HOVER PARA IMÁGENES DEL MOSAICO
   ============================================ */

.hero-mosaic .cell,
.about-grid .about-cell {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-mosaic .cell:hover,
.about-grid .about-cell:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.hero-mosaic .cell img,
.about-grid .about-cell img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-mosaic .cell:hover img,
.about-grid .about-cell:hover img {
    transform: scale(1.1);
}

/* Efecto shimmer en imágenes */
.hero-mosaic .cell::before,
.about-grid .about-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    z-index: 10;
    transition: left 0.7s ease;
    pointer-events: none;
}

.hero-mosaic .cell:hover::before,
.about-grid .about-cell:hover::before {
    left: 150%;
}


/*custom pixonit*/

.et_pb_button_module_wrapper:has(.button-hero) {
  display: inline-flex !important;
}

a:where(:not(.wp-element-button)) {
    text-decoration: none !important;
}

/* patron de fondo*/

/* Patrón de fondo global con opacidad controlada */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/pattern.svg');
    background-repeat: repeat;
    background-size: 200px 200px; /* Ajusta el tamaño del patrón según lo necesites */
    opacity: 0.05; /* Ajusta la transparencia aquí */
    z-index: -1;
    pointer-events: none;
}

.percent-value, .percent-sign {
    font-size: 2.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}


.about-grid .et_pb_code_inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 16px;
    height: 100%;
}
.about-grid .about-cell {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}
.about-grid .about-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.about-grid .about-cell:hover img {
    transform: scale(1.08);
}
.about-grid .about-cell-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.about-grid .about-cell-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.about-grid .about-cell-3 { grid-column: 2 / 3; grid-row: 2 / 3; }








/* ── Aviso de éxito: producto añadido al carrito ── */
.woocommerce-notices-wrapper .woocommerce-message {
    background-color: #163B52;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    font-size: inherit;
}

/* Texto dentro del aviso */
.woocommerce-notices-wrapper .woocommerce-message a:not(.button) {
    color: #ffffff;
    text-decoration: underline;
}

/* Botón "Ver carrito" */
.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message a.button {
    background-color: #2ABFB3 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: inherit;
    float: none !important;
    margin-left: auto;
    box-shadow: none !important;
    text-decoration: none;
}

.woocommerce-notices-wrapper .woocommerce-message .button:hover,
.woocommerce-notices-wrapper .woocommerce-message a.button:hover {
    background-color: #2ABFB3 !important;
    color: #ffffff !important;
}

/* ── Aviso de error ── */
.woocommerce-notices-wrapper .woocommerce-error {
    background-color: #163B52;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-family: inherit;
    list-style: none;
}

/* ── Aviso informativo ── */
.woocommerce-notices-wrapper .woocommerce-info {
    background-color: #163B52;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-family: inherit;
}

.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-message::before {
    color: #ffffff;
}


.woocommerce-cart-form__cart-item a{
color: #163B52 !important;
font-size: 16px !important;
}

.et_pb_custom_button_icon:hover{
    color: #2ABFB3 !important;
}

.et_pb_custom_button_icon:hover{
    color: #163B52 !important;
}


/* ============================================
   FORMULARIO DE CONTACTO - FLEX LAYOUT
   ============================================ */

/* Fila de 2 columnas */
.contact-form .form-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Fila del textarea: columna única */
.contact-form .form-row--full {
    flex-wrap: wrap;
}



/* Cada campo ocupa exactamente la mitad */
.contact-form .form-row .form-group {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Textarea ocupa todo el ancho */
.contact-form .form-row--full .form-group {
    flex: 1 1 100%;
}

/* FIX CF7: span wrapper en bloque */
.contact-form .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

/* Labels */
.contact-form .form-group label {
    font-weight: 600;
    font-size: 14px;
    display: block;
}

/* Inputs, select y textarea */
.contact-form .form-control,
.contact-form input.form-control,
.contact-form select.form-control,
.contact-form textarea   {
    width: 100% !important;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
    display: block;
}

/* Textarea */
.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-form textarea{
    background-color: #ffffff !important; 
    color: #163B52 !important; 
}

/* Botón */
.contact-form .form-submit {
    display: block;
    margin-top: 8px;
}

/* Responsive móvil */
@media (max-width: 640px) {
    .contact-form .form-row {
        flex-wrap: wrap;
    }
    .contact-form .form-row .form-group {
        flex: 1 1 100%;
    }
}