/*
Theme Name: Eric
Theme URI: https://vendingecologic.com/
Author: Tu Nombre
Description: Tema hijo basado en "wp-bootstrap-starter"
Version: 1.0
*/

/* Aquí puedes añadir tus modificaciones CSS */

/* === VARIABLES GLOBALES === */
:root {
    --primary-color: #c7a589;
    --secondary-color: #fff9e1;
    --text-color: #333;
    --light-color: #ffffff;
}

/* === GENERAL === */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* === COLORES PRINCIPALES === */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.a2, .b {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* === BOTONES === */
.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    box-shadow: 5px 5px 5px 5px var(--secondary-color);
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem var(--primary-color);
}

/* === ENLACES === */
a {
    color: var(--primary-color);
}

a:hover {
    opacity: 0.8;
}

/* === IMÁGENES === */
img.a {
    display: block;
    margin: auto;
}

#carouselExampleControls {
    max-width: 100%;
    height: 500px;
}

#carouselExampleControls .carousel-inner {
    height: 100%;
}

#carouselExampleControls .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === SECCIÓN INICIAL CON IMAGEN EN DIAGONAL === */
.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 5%;
    position: relative;
    overflow: hidden;
    gap: 2rem;
}

.text-container {
    width: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-container h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
}

.text-container p {
    font-size: 1.1rem;
    max-width: 90%;
    color: var(--text-color);
    line-height: 1.5;
}

/* Imagen diagonal en el lado derecho */
.clip-diagonal {
    width: 50%;
    height: 85vh;
    object-fit: cover;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInImage 1s ease-out 1s forwards;
}
/* === SECCIÓN FLEXIBLE CON IMAGEN A LA IZQUIERDA === */
.flex-container.reverse {
    flex-direction: row-reverse;
    position: relative; /* Asegura que los elementos se alineen correctamente */
}

/* Imagen diagonal a la izquierda */
.clip-diagonal-left {
    width: 50%;
    height: 85vh;
    object-fit: cover;
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    opacity: 0;  
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Asegurar que el texto no se superponga con la imagen */
.text-container {
    width: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9); /* Opcional: Fondo semitransparente para mejorar legibilidad */
    padding: 2rem;
}

.clip-diagonal-left.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Animaciones */
@keyframes slideInText {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInImage {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .flex-container, 
    .flex-container.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .clip-diagonal-left,
    .clip-diagonal {
        width: 100%;
        height: auto;
        position: relative;
        clip-path: none;
        transform: none;
        opacity: 1;
    }

    .text-container {
        width: 90%;
        padding: 1rem;
    }

    .text-container h1 {
        font-size: 2rem;
    }

    .text-container p {
        font-size: 1rem;
        max-width: 100%;
    }

    .two-column-section {
        flex-direction: column;
        text-align: center;
    }

    .two-column-section .text-content {
        width: 100%;
    }
}


.fade-in {
    opacity: 0;
    transform: translateY(20px); /* Desplazamiento inicial */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}