/**
 * Custom Styles para Madalyn Child Theme
 * Aquí puedes agregar tus estilos personalizados
 */

/* Estructura sticky footer */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    color: var(--color-primary-blue)
}

#page {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.site-main {
    flex: 1;
}

.site-footer {
    margin-top: auto;
}
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.site-header {
    border-bottom: 2px solid var(--color-secondary-light-blue);
}
#force-center {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
}

:root {
  /* Colores principales */
  --color-primary-green: #768e78;
  --color-primary-yellow: #fcca8a;
  --color-primary-orange: #e2875f;
  --color-primary-blue: #27546b;

  /* Colores secundarios / neutros */
  --color-secondary-beige: #c6c09c;
  --color-secondary-cream: #ecdec1;
  --color-secondary-peach: #fac4b2;
  --color-secondary-light-blue: #d2dde1;
}


*,
*::before,
*::after {
    box-sizing: border-box;
    background-repeat: no-repeat;
}

* {
    padding: 0;
    margin: 0;
}

html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    block-size: 100%;
}

body {
    min-block-size: 100%;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-attachment: fixed;
}

img,
iframe,
audio,
video,
canvas {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
}

svg {
    max-inline-size: 100%;
}

svg:not([fill]) {
    fill: currentColor;
}

input,
button,
textarea,
select {
    font: inherit;
}

textarea {
    resize: vertical;
}

fieldset,
iframe {
    border: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
    font-variant-numeric: proportional-nums;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-variant-numeric: lining-nums;
    color: var(--color-primary-blue) !important;
    font-weight: 600;
}

p,
blockquote,
q,
figcaption,
li {
    hanging-punctuation: first allow-end last;
}

input,
label,
button,
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
}

math,
time,
table {
    font-variant-numeric: tabular-nums lining-nums slashed-zero;
}

code {
    font-variant-numeric: slashed-zero;
}

table {
    border-collapse: collapse;
}

abbr {
    font-variant-caps: all-small-caps;
    text-decoration: none;

    &[title] {
        cursor: help;
        text-decoration: underline dotted;
    }
}

sup,
sub {
    line-height: 0;
}

:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

:focus-visible {
    outline-offset: 0.2rem;
}
.ol, ul {
    margin: 0 0 1.5em 1.5em !important;
}

/* HEADER */
.inside-header {
    max-width: 1500px;
    margin: 0 auto;
}
.site-logo img {
    max-width: 200px;
    height: auto;
}

/* Main container */
.grid-container {
    width: 100% !important;
    max-width: 100%;
}
.site-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.separate-containers .site-main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}
.centered {
    max-width: 1200px !important;
    margin: 0 auto;
}
.force-center {
    display: grid;
    place-items: center;
    max-width: 1200px !important;
}
.content-area {
    width: 100% !important;
    max-width: 1200px !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    padding: 40px 30px !important;
}
/* Body Elements */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding:30px 15px !important;
    border-radius: 30px !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card > .elementor-widget-button {
    margin-top: auto;
    width: calc(100%);
}
/* H2 with effect */
.line-effect {
    padding: 20px 0;
    display: inline-block;
    border-top: 1px solid var(--color-secondary-light-blue);
    border-bottom: 1px solid var(--color-secondary-light-blue);
}
.hero-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white !important;
}
/* FOOTER */
.site-footer footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-top: 1px solid var(--color-secondary-light-blue);
    padding: 10px 100px;
}
.site-footer nav {
    height: 20px;
}
.site-footer .menu-footer ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}
.site-footer .menu-footer ul li a {
    color: var(--color-primary-blue);
    text-decoration: none;
    font-weight: 500;
}
.site-footer .menu-footer ul li a:hover {
    color: var(--color-primary-green) !important;
}
/* BOTONES */
.elementor-button {
    background-color: var(--color-primary-green) !important;
    color: #fff;
    border: none;
    padding: 20px 20px !important;
    border-radius: 30px !important;
    transition: background-color 0.3s ease;
} 

.elementor-button:hover {
    background-color: var(--color-primary-orange) !important;
}
/* CONTENT  BLOG*/
.inside-article > .featured-image {
    max-height: 300px;
    overflow: hidden;
    margin-bottom: 30px;
}
.inside-article > .featured-image > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.entry-header {
    margin-bottom: 30px;   
}

/* STEPBOX */
/* Estilo de las cajas de pasos */
.step-box {
    padding: 20px 30px !important;
    text-align: center;
    position: relative;
    border-radius: 5px;
}

/* Degradado para cada paso */
/* Estilo de las cajas de pasos */
/* Contenedor de los pasos */
.step-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Estilo base de cada caja con forma de flecha */
.step-box {
    padding: 15px 40px 15px 50px !important;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
    margin-right: -20px;
}

/* Primera caja (sin punta izquierda) */
.step-1 {
    background: linear-gradient(135deg, #27546b 0%, #143647 100%) !important;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%) !important;
    padding-left: 30px !important;
}

/* Segunda caja */
.step-2 {
    background: linear-gradient(135deg, #768e78 0%, #4b614d 100%) !important;
}

/* Tercera caja (sin punta derecha) */
.step-3 {
    background: linear-gradient(135deg, #e2875f 0%, #8d4d32 100%) !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%) !important;
    padding-right: 30px !important;
    margin-right: 0 !important;
}

/* Texto blanco */
.step-box * {
    color: #ffffff !important;
    margin: 0 !important;
}

/* Blog */
.blog {
    margin-top: 40px
}
.blog-title {
    max-width: 950px;
    text-align: center;
    margin: 30px auto 60px auto;
    font-weight: 400;
}
.blog article {
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 30px !important;
    background-color: white;
}
.blog article .wrapper {
    display: flex;
    gap: 20px;
}
.blog article > footer {
    background: none;
    display: flex;
    justify-content: flex-end;
}
.blog article > footer > a {
    background-color: var(--color-primary-green) !important;
    color: #fff;
    border: none;
    padding: 20px 20px !important;
    border-radius: 30px !important;
    transition: background-color 0.3s ease;
    text-decoration: none;
    position: relative;
}   
.blog article > footer > a:hover {
    background-color: var(--color-primary-orange) !important;
}
.entry-title a {
    color: var(--color-primary-blue) !important;
}
.entry-content:not(:first-child), .entry-summary:not(:first-child), .page-content:not(:first-child) {
    margin-top: 0 !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .step-container {
        flex-direction: column;
    }
    
    .step-box {
        width: 100% !important;
        clip-path: none !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
        padding: 15px 20px !important;
    }
    
    .step-1, .step-3 {
        clip-path: none !important;
    }
}

/* Header Styles */
.custom-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}
.custom-header a {
    color: var(--color-primary-blue);
    text-decoration: none; 
}
.custom-header > ul > li > a {
    color: var(--color-primary-blue);
}
.custom-header a:hover {
    color: white !important;
}

.custom-header .current_page_item a {
    background-color: var(--color-primary-green) !important;
    font-weight: bold;
    border-radius: 5px;
    color: white !important;
}

.site-logo img {
    height: 50px; /* Adjust as needed */
}

.header-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    padding-top: 25px;
    align-items: anchor-center;
}

.header-menu li {
    display: inline;
}

.header-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

.header-menu a:hover {
    background-color: var(--color-primary-green);
    border-radius: 4px;
}
.elementor-image-carousel-caption {
    height: 80px;
    font-size: 1.2rem;
    color: white !important;
    font-weight: 100;
    background-color: #4b614d !important;
    text-align: left !important;
    padding: 10px 20px;
}
.post-thumbnail {
    width: 300px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    padding: 15px 15px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(34, 25, 25, 0.4);
    -moz-box-shadow: 0 1px 2px rgba(34,25,25,0.4);
    -webkit-box-shadow: 0 1px 3px rgba(34, 25, 25, 0.4);
}
.post-thumbnail img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 30px; 
}
.spwidget-button {
    background-color: var(--color-primary-orange) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px !important;
    border-radius: 30px !important;
    transition: background-color 0.3s ease;
	font-size: inherit !important;
}

@media screen and (max-width: 999px) {
    .custom-header {
        flex-direction: column;
        gap: 20px;
    }
    #menu-main-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    footer {
        flex-direction: column;
        gap: 20px;
        height: 320px;
    }
    #menu-menu-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

