:root{
    --bg:#fafafa;
    --bg2: #171616;
    --bg3: #FAF7F2;
    --white:#ffffff;
    --accent:#ed9227; /* naranja que te puede gustar */
    --text:#222;
    --muted:#666;
    --gold: #d4af37;
    --light-gold: #f8e8a0;
    --radius:10px;
    font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.bold {
    font-weight: bold;
}

.botones {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.botones button {
    background-color: #111;
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.botones button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.botones button:hover::after {
    left: 0;
}
.botones button:hover {
    transform: translateY(-3px);
}
.botones button:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/************  HEADER ************/

#whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}
#whatsapp-button > img {
    width: 70px;
    height: 70px;
}
@media (max-width: 800px) {
    #whatsapp-button {
        bottom: 60px;
    }
}
@media (max-width: 600px) {
    #whatsapp-button > img {
        width: 60px;
        height: 60px;
    }
}


/************  HEADER ************/

header {
    background: #000;
    display: flex;
    align-items: center;
    padding: 10px 25px;
    height: 90px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.logo {
    width: 12%;
    min-width: 120px;
}

.logo img {
    width: 100%;
    max-height: 70px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 35px;
    margin-left: 30px;
    flex: 1;
}

nav a, #mobileNav > a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: 0.3s ease;
    padding-bottom: 4px;
}

#mobileNav > a {
    margin: 0 auto;
}

nav a::after, #mobileNav > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after, #mobileNav > a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-right: 28px;
    align-items: center;
}

.social-icons svg, .social-icons img {
    width: 23px;
    height: 23px;
    fill: var(--white);
    cursor: pointer;
    transition: 0.3s ease;
}

.social-icons svg:hover {
    transform: scale(1.25);
    fill: #EFAA26;
}
.social-icons img:hover {
    transform: scale(1.25);
    filter: brightness(0) saturate(100%) invert(75%) sepia(69%) saturate(1007%) hue-rotate(338deg) brightness(96%) contrast(95%);
}

.cta-btn {
    background: var(--accent);
    color: black;
    padding: 12px 25px;
    font-size: 17px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: 0.3s ease;
    margin-right: 20px;
}

.cta-btn:hover {
    background: #f09b39;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    right: 20px;
    position: absolute;
}

.hamburger span {
    background: var(--white);
    height: 3px;
    width: 28px;
    margin: 4px 0;
    display: block;
    border-radius: 4px;
}

#mobileMenu {
    display: none;
}

#mobileNav {
    display: none;
    flex-direction: column;
    background: #111;
    padding: 20px;
    text-align: center;
    position: absolute;
    top: 70px;
    right: 0;
    width: 60%;
    z-index: 10;
}

#mobileNav a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 0;
    font-size: 18px;
}

@media (max-width: 1042px) {
    nav, header > .social-icons, header .cta-btn {
        display: none;
    }

    .hamburger {
        display: flex;
        right: 60px;
    }
    #mobileMenu {
        display: flex;
    }
    #mobileNav {
        display: none;
    }
    .social-icons {
        margin-right: 0px;
        justify-content: center;
        padding: 10px 0;
    }
    .cta-btn {
        margin-right: 0px;
    }
}


/************  FOOTER ************/

footer {
    background: var(--accent);
    color: var(--white);
    padding: 60px 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    animation: fadeIn 1.2s ease-in-out;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.25);
}

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

footer h3 {
    font-size: 22px;
    margin-bottom: 18px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.footer-section {
    max-width: 260px;
}

.footer-section a {
    color: var(--white);
    text-decoration: underline;
    display: block;
    margin: 8px 0;
    font-size: 15px;
    transition: 0.3s;
}

.footer-section a:hover {
    transform: translateX(8px);
    opacity: 0.8;
}

.footer-icons {
    display: flex;
}

.footer-icons i {
    font-size: 28px;
    margin-right: 18px;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.4);
}

.footer-icons i:hover {
    transform: scale(1.3) rotate(8deg);
    opacity: 0.8;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.5);
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.95;
}


/************  LEGAL ************/
.legal {
    padding: 20px 40px;
}

.legal p{
    font-weight: 100;
}


/************  PRIMERA SECCIÓN CON IMAGEN ************/
    
section.hero {
    width: 100%;
    height: 34rem; /* pantalla completa */
    background-image: url('./images/background_banner1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Capa negra superior degradada */
section.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;

    /* degradado suave */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.60) 40%,
        rgba(0, 0, 0, 0.30) 75%,
        rgba(0, 0, 0, 0.10) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    height: 100%;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 15%;
    max-width: 1400px;
}

.hero-content h1 {
    text-align: left;
    font-size: 3em;
    margin: 0;
}

section.hero img {
    position: absolute;
    top: 8px;
}
#REPSE_Logo {
    right: 36px;
}
#HEM_Logo {
    left: 36px;
}

.hc-btn {
    background: #00000000;
    color: var(--white);
    padding: 8px 12px;
    padding-top: 6px;
    font-size: 15px;
    border: 1px solid var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-weight: normal;
    text-decoration: none;
    transition: 0.3s ease;
    margin-right: 20px;
    width: fit-content;
    position: relative;
    overflow: hidden;
}
.hc-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.hc-btn:hover::after {
    left: 0;
}
.hc-btn:hover {
    transform: scale(1.05);
}
.hc-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
}

.hc-arrow{
    font-size: 20px;
    font-weight: 500;
}


.panel {
    max-width: 980px;
    margin: 48px auto;
    background: #fff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.controls {
    display:flex;
    justify-content:center;
    margin-bottom: 26px;
}

.producto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.producto img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.info {
    padding: 6px 4px;
}

.info h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color:#111;
}

.info p {
    margin: 0 0 18px;
    color: #444;
    line-height: 1.6;
}

@media (max-width: 1012px) {
    #REPSE_Logo {
        right: 12px;
    }
}
@media (max-width: 800px) {
    #REPSE_Logo, #HEM_Logo {
        height: 4rem;
        width: auto;
    }
}
@media (max-width: 451px) {
    #HEM_Logo {
        left: auto;
        right: 12px;
        top: 100px;
    }
}


/* Animación suave de entrada */
.fade-enter {
    opacity: 0;
    transform: translateY(14px);
}
.fade-enter.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all .42s cubic-bezier(.2,.9,.3,1);
}

@media (max-width: 800px) {
    section.hero { height: 20rem; }
    .producto { grid-template-columns: 1fr; }
    .producto img { max-height: 320px; }
    .hero-content { width: 90%; padding: 0 0% 0 10%; }
}


/************  SERVICIOS ************/

section.services {
    background:var(--bg1);
    max-width: 1400px;
    margin: 0 auto;
}
section.services::before {
    content: "";
    color: #f6d0aa;
    opacity: 0.3;
    font-size: 60px;
    font-weight: bold;
    position: absolute;
    text-align: left;
    margin-left: 7%;
    margin-top: 10px;
    z-index: -1;
}

section.services h1{
    color: black;
    margin-bottom: 0;
}
section.services > div {
    text-align: center;
    height: 100%;
}
section.services > div > p {
    margin: 0;
}

.products {
    padding: 2% 10%;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.product-panel, .service-panel {
    max-width: 48%;
    margin: 0 auto;
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  }

  .product-panel h1, .service-panel h1 {
    font-size: clamp(12px, 1.6vw, 1rem);
  }

  .product-controls, .service-controls {
    display:flex;
    justify-content:center;
    height: 40px;
    margin-bottom: 26px;
  }
  section.services label {
    justify-self: center;
    line-height: 40px;
  }

  .product, .service {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4px;
    align-items: center;
  }
  .product img, .service img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }

  .product-info, .service-info {
    text-align: left !important;
    padding-left: 10px;
  }
  .product-info h2, .service-info h2 {
    font-size: clamp(14px, 1.8vw, 1rem);
  }
  .product-info p, .service-info p {
    font-size: clamp(10px, 1.4vw, 0.8rem);
  }
  .product-info .botones, .service-info .botones {
    width: 100%;
    gap: 2px !important;
    justify-content: left;
    margin-top: 0;
  }
  .product-info .botones button, .service-info .botones button {
    align-items: center;
    font-size: 10px !important;
    padding: 8px 16px !important;
    display: flex;
    text-align: center;
  }

  section.services select {
    padding: 6px 16px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #d0d0d5;
    background: #fff;
    width: 50%;
    outline: none;
    transition: box-shadow .18s ease, border-color .18s ease;
  }

  section.services select:focus {
    border-color: #000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }

@media (max-width: 800px) {
    #selector-product, #selector-service {
        width: 50% !important;
        padding: 0 0 0 2%;
    }
    .products {
        flex-direction: column;
    }
    .product-panel, .service-panel {
        max-width: 85%;
    }
    .product-controls, .service-controls {
        margin-bottom: 2px;
    }
}


/************  SELECTION  ************/
section.philosophy {
    background: linear-gradient(180deg, #000000, #1a1a1a);
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    padding: 40px 0;
}

.text-area::before {
    content: "ACERCA DE NOSOTROS";
    color: var(--white);
    opacity: 0.02;
    font-size: 60px;
    font-weight: bold;
    position: absolute;
    margin-left: 7%;
    margin-top: 10px;
}

.text-area > .text{
    margin: 50px 10%;
    color: var(--white);
}

  .impala-container {
    width: 80%;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    border: 1px solid #d4af3740;
    box-shadow: 0 0 25px #d4af3759;
    max-width: 1400px;
    margin: 0 auto;
  }
  .impala-left {
    width: 50%;
    background: #111;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .impala-card {
    max-width: 600px;
    color: var(--white);
  }

  .impala-card h1 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .impala-card p {
    font-size: 1rem;
    line-height: 1.55;
    margin: 10px 0;
  }

  .impala-card strong {
    color: var(--);
  }

  .impala-card em {
    color: var(--gold);
    font-style: normal;
  }

  .impala-chip {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    margin: 4px;
    background: #d4af3526;
    border-radius: 20px;
    border: 1px solid #d4af374d;
    color: var(--light-gold);
  }

  .impala-card footer {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--muted);
  }

  .impala-right {
    width: 50%;
    max-height: 660px;
    position: relative;
    overflow: hidden;
}

.impala-slide {
    display: inline-block;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center right;
    position: absolute;
    transform: translateX(0);
}

/* Fading animation */
.slideInRight {
    animation: slideInRight 3s ease-out;
}
.slideInLeft {
    animation: slideInLeft 3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 800px) {
    section.selection h1 {
        font-size: 1.2rem;
    }
    .impala-container {
      flex-direction: column;
      height: auto;
    }
    .impala-left {
      width: 86%;
      padding: 10px 40px;
    }
    .impala-right {
      height: 300px;
      width: 100%;
    }
}


/************  STATS ************/

section.stats {
    height: 20rem;
    background:var(--bg);
    position: relative;
}
section.stats > .stats-container{
    position: absolute;
    height: 60%;
    width: 80%;
    margin: 0;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    max-width: 1400px;
    margin: 0 auto;
}

.stat {
    display: flex;
    width: 25%;
    justify-content: center;
    align-items: center;
    border-left: 1px solid black;
}
.stat#first {
    border-left: 0px;
}
.stat#last {
    border-right: 0px;
}
.stat > * {
    position: absolute;
}
.stat > img {
    height: 4rem;
    width: auto;
    top: -4%;
    filter: brightness(0) saturate(100%) invert(0%) sepia(11%) saturate(2875%) hue-rotate(8deg) brightness(81%) contrast(88%);
}
.stat > .text {
    bottom: 10%;
    font-size: 1.25rem;
}
.stat > .number {
    color:var(--accent);
    font-size: 2.5rem;
    font-weight: bold;
}

.number.plus::before {
    content: "+";
}
.number.thousand::after {
    content: "k";
}
.number.thousands::after {
    content: ",000";
}

@media (max-width: 1150px) {
    .stat > .text{
        font-size: 1.05rem;
    }
    .stat > .number{
        font-size: 2rem;
    }
}
@media (max-width: 900px) {
    section.stats > .stats-container {
        width: 100%;
        height: 90%;
        flex-direction: column;
        align-items: center;
    }
    .stat {
        display: flex;
        width: 80%;
        height: 25%;
        border-left: none;
        border-top: 1px solid black;
    }
    .stat#first {
        border-top: 0px;
    }
    .stat > * {
        position: relative;
        align-items: center;
        text-align: center;
    }
    .stat > img {
        height: 65%;
        width: auto;
        top: 0%;
        left: -4%;
    }
    .stat > .text {
        width: 30%;
        bottom: 0%;
        right: -4%;
    }
    .stat > .number {
        width: 35%;
        color:var(--accent);
        font-size: 1.7rem;
        font-weight: bold;
    }
}
@media (max-width: 400px){
    .stat > img {
        height: 50%;
    }
    .stat > .number{
        font-size: 1.5rem;
    }
    .stat > .text{
        font-size: 0.9rem;
    }
}



/************  ANIMATIONS ************/

.animate {
    font-size: 34px;
    margin: 10px 0 0;
    
}

@media (max-width: 1100px){
    .animate {
        font-size: 30px;
    }
}
@media (max-width: 800px){
    .animate {
        font-size: 26px;
    }
}

.animate2 {
    font-size: 14px;
    margin: 10px 0 0;
}

    .animate span {
        display: inline-block;
    }


.animate span:nth-of-type(2) {
    animation-delay: .05s;
}

.animate span:nth-of-type(3) {
    animation-delay: .1s;
}

.animate span:nth-of-type(4) {
    animation-delay: .15s;
}

.animate span:nth-of-type(5) {
    animation-delay: .2s;
}

.animate span:nth-of-type(6) {
    animation-delay: .25s;
}

.animate span:nth-of-type(7) {
    animation-delay: .3s;
}

.animate span:nth-of-type(8) {
    animation-delay: .35s;
}

.animate span:nth-of-type(9) {
    animation-delay: .4s;
}

.animate span:nth-of-type(10) {
    animation-delay: .45s;
}

.animate span:nth-of-type(11) {
    animation-delay: .5s;
}

.animate span:nth-of-type(12) {
    animation-delay: .55s;
}

.animate span:nth-of-type(13) {
    animation-delay: .6s;
}

.animate span:nth-of-type(14) {
    animation-delay: .65s;
}

.animate span:nth-of-type(15) {
    animation-delay: .7s;
}

.animate span:nth-of-type(16) {
    animation-delay: .75s;
}

.animate span:nth-of-type(17) {
    animation-delay: .8s;
}

.animate span:nth-of-type(18) {
    animation-delay: .85s;
}

.animate span:nth-of-type(19) {
    animation-delay: .9s;
}

.animate span:nth-of-type(20) {
    animation-delay: .95s;
}

        .animate span:nth-of-type(21) {
            animation-delay: 1.00s;
        }

        .animate span:nth-of-type(22) {
            animation-delay: 1.05s;
        }

        .animate span:nth-of-type(23) {
            animation-delay: 1.10s;
        }

        .animate span:nth-of-type(24) {
            animation-delay: 1.15s;
        }

        .animate span:nth-of-type(25) {
            animation-delay: 1.20s;
        }

/* Animation One */

.one-play span {
    color: #24a8e6;
    opacity: 0;
    transform: translate(-150px, -50px) rotate(-180deg) scale(3);
    animation: revolveScale .4s forwards;
}

@keyframes revolveScale {
    60% {
        transform: translate(20px, 20px) rotate(30deg) scale(.3);
    }

    100% {
        transform: translate(0) rotate(0) scale(1);
        opacity: 1;
    }
}


/* Animation Two */

.two-play span {
    color: #a5cb21;
    opacity: 0;
    transform: translate(200px, -100px) scale(2);
    animation: ballDrop .3s forwards;
}

@keyframes ballDrop {
    60% {
        transform: translate(0, 20px) rotate(-180deg) scale(.5);
    }

    100% {
        transform: translate(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}


/* Animation Three */


.three-play span {
    color: #b10e81;
    opacity: 0;
    transform: translate(-300px, 0) scale(0);
    animation: sideSlide .5s forwards;
}

@keyframes sideSlide {
    60% {
        transform: translate(20px, 0) scale(1);
        color: #b10e81;
    }

    80% {
        transform: translate(20px, 0) scale(1);
        color: #b10e81;
    }

    99% {
        transform: translate(0) scale(1.2);
        color: #00f0ff;
    }

    100% {
        transform: translate(0) scale(1);
        opacity: 1;
        color: #b10e81;
    }
}


/* Animation Four */


.four-play span {
    color: #6b6d70;
    opacity: 0;
    transform: translate(0, -100px) rotate(360deg) scale(0);
    animation: revolveDrop .3s forwards;
}


@keyframes revolveDrop {
    30% {
        transform: translate(0, -50px) rotate(180deg) scale(1);
    }

    60% {
        transform: translate(0, 20px) scale(.8) rotate(0deg);
    }

    100% {
        transform: translate(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}


/* Animation Five */


.five-play span {
    color: #dd3f0f;
    opacity: 0;
    transform: translate(0, -100px) rotate(360deg) scale(0);
    animation: dropVanish .5s forwards;
}


@keyframes dropVanish {
    30% {
        transform: translate(0, -50px) rotate(180deg) scale(1);
    }

    50% {
        transform: translate(0, 20px) scale(.8) rotate(0deg);
        opacity: 1;
    }

    80% {
        transform: translate(-100px, -100px) scale(1.5) rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: translate(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}



/* Animation Six */


.six-play span {
    color: #111;
    opacity: 0;
    transform: rotate(-180deg) translate(150px, 0);
    animation: twister .5s forwards;
}


@keyframes twister {
    10% {
        opacity: 1;
    }

    100% {
        transform: rotate(0deg) translate(0);
        opacity: 1;
    }
}



/* Animation Seven */


.seven-play span {
    color: #348c04;
    opacity: 0;
    transform: translate(-150px, 0) scale(.3);
    animation: leftRight .5s forwards;
}


@keyframes leftRight {
    40% {
        transform: translate(50px, 0) scale(.7);
        opacity: 1;
        color: #348c04;
    }

    60% {
        color: #0f40ba;
    }

    80% {
        transform: translate(0) scale(2);
        opacity: 0;
    }

    100% {
        transform: translate(0) scale(1);
        opacity: 1;
    }
}


/************  ANUNCIOS ************/
section.announcements {
    background: var(--bg2);
    text-align: center;
}

section.announcements div{
    padding: 40px 6%;
    color: var(--white);
    max-width: 1400px;
    margin: 0 auto;
}
section.announcements div > h1 {
    margin-bottom: 0;
}
section.announcements div > p {
    margin: 0;
}

section.announcements .botones, #list-announcements {
    padding: 0;
    margin: 0;
}

.anuncio {
    display: grid;
    grid-template-columns: 2fr 7fr;
    align-items: center;
    text-align: left;
    height: min-content;
}

.anuncio:last-child {
    border-bottom: none;
}

.anuncio > img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.anuncio > img:hover {
    transform: scale(1.05);
}

.anuncio > .texto {
    max-height: 500px;
    padding: 0 0 0 20px;
}
.anuncio > .texto > h2 {
    color: var(--accent);
    margin-bottom: 5px;
    font-size: 1.15rem;
}
.anuncio > .texto > p.fecha {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}
.anuncio > .texto > p.descripcion {
    margin-top: 10px;
    font-size: clamp(12px, 1.6vw, 1rem);
    line-height: 1.3;
    font-size: 1rem;
}

@media (max-width: 800px){
    section.announcements div{
        padding: 20px 4%;
    }
    section.announcements div > h1{
        margin-top: 0;
    }
}


/************  CLIENTES ************/
section.clients{
    height: 8cm;
    background-image: url("./images/bg_clients.png");
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

section.clients::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.brand-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.slide-track {
    display: flex;
    white-space: nowrap;
}

.scrolling-content {
    display: flex;
}

.slide-track img {
    height: 100px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-right: 60px;
}

.animated > div {
    animation: var(--direction) var(--marquee-speed) linear infinite;
}

@keyframes scroll-left {
    0% { 
        transform: translateX(0); 
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 900px){
    section.clients {
        height: 6cm;
    }
    section.clients h1{
        margin: 0;
    }
}


/************  TESTIMONIOS ************/
section.testimonials {
    background:var(--bg3);
    text-align: center;
    max-width:1400px;
    margin: 0 auto;
    padding-bottom: 18px;
}

section.testimonials h1{
    color: black;
}

.testimonial-cards {
    display:flex;
    gap: 14px;
    justify-content:center;
    align-items:stretch;
    flex-wrap:wrap;
    padding: 0 5%;
}
.testimonial-card {
    background:var(--bg2);
    color:#fff;
    border-radius: 14px;
    padding: 28px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height: 350px;
    max-height: max-content;
    width: 28%;
}
.testimonial-card p {
    margin:0 0 20px 0;
    line-height:1.5;
    font-size:15px;
    text-align:left;
}

.testimonial-card-footer {
    margin-top:20px;
    display:flex;
    align-items:center;
    gap:12px;
}

section.testimonials .highlight {
    font-weight:700;
    text-decoration: underline;
}

.testimonial-card .avatar{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid rgba(255,255,255,0.15);
}
.testimonial-card .person-info{
    text-align:left;
    line-height:1.1;
    color:#fff;
}

.testimonial-card .person-name{
    color: var(--accent);
    font-weight:700;
    display:block;
    margin-bottom:3px;
    font-size:14px;
}

.testimonial-card .person-role{
    color:#fff;
    opacity:0.9;
    font-weight:500;
    font-size:13px;
}

    @media (max-width:1100px){
      .testimonial-cards { padding: 0 4px;}
      .testimonial-card{ width:300px; }
    }

    @media (max-width:900px){
      .testimonial-card{ width:40%; }
    }

    @media (max-width:650px){
      .testimonial-card{ width:60%; max-width:420px; }
    }


/************  SOBRE NOSOTROS  ************/

section.aboutus {
    position: relative;
    padding: 80px 6vw;
    display: flex;
    justify-content: center;
    background-image: url("./images/bg_aboutus.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
section.aboutus::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    pointer-events: none;
}

.newspaper {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 100%;
    background: #f4ecd8;
    color: #2b2b2b;
    padding: 50px 40px;

    box-shadow:
      inset 0 0 80px rgba(0,0,0,.15),
      0 20px 40px rgba(0,0,0,.6);
}

.newspaper h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 76px;
    text-align: center;
    letter-spacing: 3px;
    color: transparent;
    -webkit-text-stroke: 2px #2b2b2b;
    margin: 0 0 25px;
}

.date-band {
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    padding: 10px 0;
    text-align: center;
    font-family: 'Merriweather', serif;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 35px;
}
.date-band .justify-left::after{
    float: left;
    content: "www.corredizoimpala.com";
    opacity: 0;
}
.date-band .justify-center{
    float: center;
}
.date-band .justify-right{
    float: right;
}

.content {
    column-count: 2;
    column-gap: 45px;
    font-family: 'Merriweather', serif;
    font-size: 15.5px;
    line-height: 1.8;
    text-align: justify;
}

.content p {
    margin-top: 0;
    margin-bottom: 18px;
    line-height: normal;
}

@media (max-width: 900px) {
    .content {
      column-count: 1;
    }

    .newspaper h1 {
      font-size: 54px;
    }
}


/************  MAPA & CONTACTO ************/

section.contact {
    max-width:1100px;
    margin:40px auto;
    padding:18px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:20px;
    align-items:stretch;
}


/* tarjeta */
.card{
    background:var(--white);
    border-radius:var(--radius);
    box-shadow:0 6px 18px rgba(18,18,18,0.08);
    padding:22px;
    display:flex;
    flex-direction:column;
    min-height:380px;
}

/* left: form */
.card h2{
    margin:0 0 10px 0;
    font-size:20px;
}
.card p.lead{
    margin:0 0 18px 0;
    color:var(--muted);
    font-size:14px;
}

form .row{
    display:flex;
    gap:12px;
}
label{
    display:block;
    font-size:13px;
    margin-bottom:6px;
    color:var(--muted);
}
input[type="text"], input[type="email"], input[type="tel"], textarea, select{
    width:100%;
    padding:10px 12px;
    border:1px solid #e6e6e6;
    border-radius:8px;
    background: #fff;
    font-size:14px;
    box-sizing:border-box;
}
textarea{ min-height:120px; resize:vertical; }

.field { margin-bottom:12px; }

.btn {
    display:inline-block;
    background:var(--accent);
    color:var(--white);
    border:none;
    padding:12px 18px;
    border-radius:9px;
    cursor:pointer;
    font-weight:600;
    box-shadow: 0 6px 12px rgba(237,146,39,0.18);
}

.info-small{ font-size:13px; color:var(--muted); margin-top:10px; }

/* right: mapa */
.map-wrap{
    overflow:hidden;
    border-radius:var(--radius);
    display:flex;
    flex-direction:column;
}
.map-header {
    padding:12px 16px;
    background:linear-gradient(90deg,rgba(0,0,0,0.03),rgba(0,0,0,0.01));
    border-bottom:1px solid #f1f1f1;
    display:flex;
    align-items:center;
    gap:12px;
}
.map-header .title{ font-weight:700; }
.map-iframe{
    flex:1 1 auto;
    min-height:320px;
    border:0;
    width:100%;
}

/* pequeño success message */
.notice {
    display:none;
    margin-top:12px;
    padding:10px 12px;
    border-radius:8px;
    background:#e9f9ef;
    color:#0b6b3a;
    font-size:14px;
}

/* responsive */
@media (max-width:880px){
    section.contact{ grid-template-columns:1fr; padding:4px; margin:18px auto; }
    .map-iframe{ min-height:260px; }
}