/**
 * Piermundial — Custom Styles
 * Identidad visual: Real Tabacalera
 * Estetica: Minimalista, profesional, alto contraste B/N, pill shapes
 */

/* ========================================================================
   GLOBAL
   ======================================================================== */

html {
    scroll-behavior: smooth;
}

/* Scrollbars ocultos */
body,
.wp-block-group,
.wp-block-cover {
    scrollbar-width: none;
}

body::-webkit-scrollbar,
.wp-block-group::-webkit-scrollbar,
.wp-block-cover::-webkit-scrollbar {
    display: none;
}

/* ========================================================================
   ANIMACIONES
   ======================================================================== */

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ========================================================================
   CARDS
   ======================================================================== */

/* Card con glassmorphism (contacto) */
.wp-block-group.is-style-card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: none;
    padding: 32px 28px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.wp-block-group.is-style-card-glass:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Card de sector */
.wp-block-group.is-style-card-sector {
    background: #ffffff;
    border: 0.52px solid #ADADAD;
    border-radius: 18.18px;
    padding: 1.5rem;
    box-shadow: 0 0 37.23px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.wp-block-group.is-style-card-sector.is-active,
.wp-block-group.is-style-card-sector:hover {
    border: 5px solid #000000;
}

/* Card estandar */
.wp-block-group.is-style-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wp-block-group.is-style-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ========================================================================
   HERO
   ======================================================================== */

.wp-block-cover.is-style-hero-section {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 30px;
    overflow: hidden;
}

.wp-block-group.is-style-hero-product {
    border: 1px solid #000;
    border-radius: 55px;
    padding: 20px;
}

/* ========================================================================
   FORMULARIOS (Gravity Forms + nativos)
   ======================================================================== */

/* Inputs de texto */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.wp-block-search__input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"] {
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid #E5E5E5;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    background: transparent;
    color: #333333;
    transition: border-color 0.2s ease;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper input[type="url"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus {
    border-bottom-color: #2ecc71;
    outline: none;
}

.gform_wrapper input::placeholder,
input::placeholder {
    color: #ADADAD;
}

/* Selects */
.gform_wrapper select,
select {
    padding: 1rem 3rem 1rem 1.5rem;
    border: 1px solid #333333;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    background: #ffffff;
    color: #333333;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gform_wrapper select:focus,
select:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    outline: none;
}

/* Textarea */
.gform_wrapper textarea,
textarea {
    padding: 1rem 1.25rem;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    min-height: 180px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.gform_wrapper textarea:focus,
textarea:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
    outline: none;
}

/* Boton de formulario */
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"] {
    padding: 0.8em 3em;
    border: 1px solid #000;
    border-radius: 50px;
    background: transparent;
    color: #000;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gform_wrapper input[type="submit"]:hover,
.gform_wrapper button[type="submit"]:hover {
    background: #000;
    color: #fff;
}

/* ========================================================================
   HEADER
   ======================================================================== */

.wp-block-template-part[data-slug="header"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

/* ========================================================================
   FOOTER HERO
   ======================================================================== */

.wp-block-cover.is-style-footer-hero {
    margin: 100px 0;
    border-radius: 155px;
    overflow: hidden;
}

/* ========================================================================
   GRID DE PRODUCTOS
   ======================================================================== */

.wp-block-group.is-style-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(282px, 1fr));
    gap: 1.5rem;
}

/* ========================================================================
   UTILIDADES
   ======================================================================== */

.has-animation-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.has-animation-shake {
    animation: shake 0.5s ease;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 1100px) {
    body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .wp-block-cover.is-style-hero-section {
        border-radius: 20px;
    }

    .wp-block-cover.is-style-footer-hero {
        border-radius: 50px;
        height: 500px;
        padding: 70px 16px;
    }
}

@media (max-width: 600px) {
    .wp-block-group.is-style-product-grid {
        grid-template-columns: 1fr;
    }
}
