/*
 * Card Components
 * 
 * @package Viva_Magenta_V1
 */

.service-card {
  background-color: var(--background-light);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* Banner de imagen para reemplazar iconos */
.service-banner { margin: -2.5rem -2rem 1.5rem; border-radius: var(--border-radius) var(--border-radius) 0 0; overflow:hidden; line-height:0; aspect-ratio: 16 / 9; background:#eee; position:relative; }
.service-banner img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s ease; }
.service-card:hover .service-banner img { transform:scale(1.05); }

.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.service-link:hover {
  color: var(--primary-dark);
}

.blog-card {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-title a {
  color: var(--text-dark);
}

.blog-title a:hover {
  color: var(--primary-color);
}

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-card {
  display: none;
  text-align: center;
  padding: 2rem;
}

.testimonial-card.active {
  display: block;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.testimonial-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 0 0 15px 0;

/* Rating (star + value) */

/* Remove previous author block spacing when image removed */
.testimonial-author, .testimonial-footer { display: flex; flex-direction: column; gap: .25rem; }
.testimonial-footer { margin-top: .5rem; }
.testimonial-card .author-name { font-size: .95rem; font-weight: 600; letter-spacing: .3px; }
.testimonial-card.mini .author-name { font-size: .85rem; }

  font-weight: 600;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-photo.placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--background-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.author-photo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.author-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Infinite testimonials carousel */
#testimonials-carousel { position:relative; overflow:hidden; margin-top:2.2rem; padding:10px 0 20px; }
#testimonials-carousel .testimonials-track { align-items:stretch; }
#testimonials-carousel .testimonial-card { flex:0 0 340px; max-width:340px; background:#fff; border:1px solid var(--border-color); border-radius: var(--border-radius); padding:1.6rem 1.4rem 1.8rem; box-shadow: var(--shadow-light); position:relative; overflow:hidden; display:flex; flex-direction:column; }
#testimonials-carousel .testimonial-card:after { content:"\201C"; position:absolute; top:-6px; right:14px; font-size:80px; line-height:1; color:rgba(214,51,132,0.07); font-family:serif; pointer-events:none; }
#testimonials-carousel .testimonial-title { font-size:1.05rem; margin:0 0 .6rem; }
#testimonials-carousel .testimonial-text { font-size:.85rem; line-height:1.5; margin:0 0 1.1rem; }
#testimonials-carousel .author-info .author-name { font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700; margin:0 0 .15rem; }
#testimonials-carousel .author-date { font-size:.65rem; letter-spacing:.05em; opacity:.7; margin:0; }
#testimonials-carousel .author-photo, #testimonials-carousel .author-photo.placeholder { width:46px; height:46px; }
#testimonials-carousel .testimonial-author { gap:.75rem; justify-content:flex-start; }
#testimonials-carousel .testimonials-pause-toggle { position:absolute; bottom:4px; right:6px; background:var(--primary-color); color:#fff; border:none; border-radius:24px; width:34px; height:34px; font-size:.9rem; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 4px 12px rgba(214,51,132,0.35); opacity:.85; transition:var(--transition); }
#testimonials-carousel .testimonials-pause-toggle:hover { opacity:1; transform:translateY(-2px); }
#testimonials-carousel:focus { outline:2px solid var(--primary-color); outline-offset:4px; }
@media (max-width:900px){
  #testimonials-carousel .testimonial-card { flex:0 0 280px; max-width:280px; }
}

/* Bodas services alt layout spacing */
.bodas-services .section-head { margin-bottom: 2.5rem; }
.bodas-services .services-grid.alt-layout { display:grid; gap: 2rem; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
.service-card.clean { 
  text-align:left; 
  background:#fff; 
  border:1px solid var(--border-color); 
  box-shadow: var(--shadow-light); 
  padding:1.8rem 1.6rem 2rem; 
  position:relative; 
  overflow:hidden; 
  display:flex; 
  flex-direction:column; 
}
.service-card.clean:before { content:""; position:absolute; inset:0; background:linear-gradient(120deg,rgba(214,51,132,0.06),rgba(214,51,132,0)); opacity:0; transition:var(--transition); pointer-events:none; }
.service-card.clean:hover:before { opacity:1; }
.service-card.clean .service-title { font-size:1.25rem; margin-bottom:.65rem; }
.service-card.clean .service-description { font-size:.95rem; margin-bottom:1rem; }
.service-card.clean .service-link { 
  font-size:.7rem; 
  letter-spacing:.12em; 
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  margin:12px auto 0; /* center horizontally */
  background: var(--primary-color);
  color:#fff;
  border-radius:40px;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
  border:2px solid var(--primary-color);
  box-shadow:0 4px 12px rgba(214,51,132,0.25);
  transition: var(--transition);
}
.service-card.clean .service-link:hover { background:#fff; color: var(--primary-color); box-shadow:0 6px 18px rgba(214,51,132,0.35); }
.service-card.clean .service-link:focus { outline:2px solid #fff; outline-offset:3px; }

/* Mini testimonial grid cards */
.testimonials-grid { display:grid; gap:1.8rem; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); margin-top:2.2rem; }
.testimonial-card.mini { display:flex; flex-direction:column; background:#fff; border:1px solid var(--border-color); border-radius: var(--border-radius); padding:1.5rem 1.4rem 1.6rem; box-shadow: var(--shadow-light); position:relative; overflow:hidden; }
.testimonial-card.mini:after { content:"\201C"; position:absolute; top:-12px; right:12px; font-size:90px; line-height:1; color:rgba(214,51,132,0.08); font-family:serif; pointer-events:none; }
.testimonial-card.mini .testimonial-body { flex:1; }
.testimonial-card.mini .testimonial-text { font-size:.95rem; font-style:normal; margin:0 0 .9rem; color:var(--text-dark); }
.testimonial-card.mini .testimonial-footer { font-size:.8rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--primary-color); }

/* Space above testimonials section title */
.bodas-testimonials .section-title { margin-bottom:.5rem; }
.bodas-testimonials .testimonials-grid + .centered { margin-top:2.4rem; }

/* Process section styling */
.bodas-process { background: linear-gradient(180deg,#fff 0%, #fdf3f8 100%); padding:90px 0 80px; }
.process-grid { margin-top:2.5rem; display:grid; gap:2rem; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); position:relative; }
.process-grid:before { content:""; position:absolute; top:50px; left:0; right:0; height:2px; background:linear-gradient(90deg,rgba(214,51,132,0.25), rgba(214,51,132,0)); pointer-events:none; }
.process-item { background:#fff; border:1px solid var(--border-color); border-radius:14px; padding:1.4rem 1.2rem 1.6rem; box-shadow: var(--shadow-light); position:relative; overflow:hidden; transition:var(--transition); }
.process-item:after { content:""; position:absolute; inset:0; background:linear-gradient(140deg,rgba(214,51,132,0.08),rgba(214,51,132,0)); opacity:0; transition:var(--transition); }
.process-item:hover { transform:translateY(-6px); box-shadow: var(--shadow-medium); }
.process-item:hover:after { opacity:1; }
.step-badge { position:relative; z-index:2; width:46px; height:46px; border-radius:50%; background:var(--primary-color); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:.95rem; margin-bottom:1rem; box-shadow:0 4px 12px rgba(214,51,132,0.35); }
.step-title { font-family: var(--font-heading); font-size:1.05rem; margin:0 0 .55rem; color:var(--text-dark); }
.step-text { font-size:.85rem; line-height:1.55; color:var(--text-light); margin:0; }

/* Creative process timeline */
.creative-process { background:linear-gradient(180deg,#fff 0%,#fef6fa 100%); padding:90px 0 80px; }
.creative-process .process-head { max-width:860px; margin:0 auto 40px; }
.process-steps { list-style:none; margin:0; padding:0; position:relative; }
.process-steps:before { content:""; position:absolute; top:0; bottom:0; left:50%; width:2px; background:linear-gradient(180deg,rgba(214,51,132,0.35),rgba(214,51,132,0)); transform:translateX(-50%); }
.process-step { position:relative; display:flex; flex-direction:row; margin:0 0 46px; }
.process-step:last-child { margin-bottom:0; }
.process-step .step-node { position:absolute; left:50%; top:0; transform:translate(-50%,0); width:70px; height:70px; border-radius:50%; background:#fff; border:3px solid var(--primary-color); display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(214,51,132,0.25); }
.process-step .step-index { font-weight:600; font-size:.9rem; letter-spacing:.08em; color:var(--primary-color); }
.process-step .step-content { width:50%; padding:6px 50px 0; }
.process-step:nth-child(odd) .step-content { margin-left:auto; text-align:left; }
.process-step:nth-child(even) .step-content { margin-right:auto; text-align:right; }
.process-step .step-title { font-family: var(--font-heading); font-size:1.25rem; margin:0 0 .5rem; color:var(--text-dark); }
.process-step .step-text { margin:0; font-size:.95rem; line-height:1.55; color:var(--text-light); }
.process-cta { margin-top:60px; display:flex; justify-content:center; }
.process-cta .cta-button { display:inline-flex; }


/* Glowing CTA variation */
.cta-button.glow { 
  position:relative; 
  overflow:hidden; 
  background: linear-gradient(100deg,var(--primary-color), var(--primary-dark)); 
  border:none; 
  box-shadow:0 6px 20px -4px rgba(214,51,132,0.55), 0 0 0 1px rgba(255,255,255,0.15) inset; 
}
.cta-button.glow:after { content:""; position:absolute; top:-40%; left:-20%; width:60%; height:180%; background: radial-gradient(circle at center,rgba(255,255,255,0.6),rgba(255,255,255,0) 70%); transform:rotate(25deg); opacity:.35; pointer-events:none; }
.cta-button.glow:hover { transform:translateY(-4px); box-shadow:0 10px 28px -6px rgba(214,51,132,0.65); }
.cta-button.glow:focus { outline:2px solid #fff; outline-offset:3px; }

/* Emphasis CTA (process) */
.cta-button.emphasis { 
  background:linear-gradient(120deg,var(--primary-color) 0%, var(--primary-dark) 85%);
  color:#fff; border:none; position:relative; padding:18px 42px; font-size:.85rem; letter-spacing:.15em; border-radius:50px; 
  box-shadow:0 10px 28px -6px rgba(214,51,132,0.55),0 0 0 1px rgba(255,255,255,0.15) inset; 
}
.cta-button.emphasis:after { content:""; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(90deg,rgba(255,255,255,0.35),rgba(255,255,255,0)); opacity:.35; mix-blend-mode:overlay; pointer-events:none; }
.cta-button.emphasis:hover { transform:translateY(-4px); box-shadow:0 14px 34px -8px rgba(214,51,132,0.6); }
.cta-button.emphasis:focus { outline:2px solid #fff; outline-offset:3px; }

/* SVG shape dividers */
.shape-divider { position:relative; width:100%; line-height:0; }
.shape-divider svg { display:block; width:100%; height:80px; }
.shape-divider.shape-divider-bottom { margin-top:-1px; }
.shape-divider g { color: var(--primary-color); }
.shape-divider.magenta-wave-1 g { color: var(--primary-color); }
.shape-divider.magenta-wave-2 g { color: var(--primary-dark); }
.shape-divider.magenta-wave-3 g { color: var(--primary-color); }
.shape-divider.flipY svg { transform:scaleY(-1); }

/* Layer blend adjustments for opacity overlaps */
.shape-divider g path { transition: var(--transition); }
.shape-divider:hover g path { opacity:1; }

/* Section thematic backgrounds to blend with shape dividers */
.section-theme-1 { background:linear-gradient(180deg,#ffffff 0%, #fff6fb 100%); }
.section-theme-2 { background:linear-gradient(180deg,#fff5fa 0%, #fde7f1 100%); }
.section-theme-3 { background:linear-gradient(180deg,#fde7f1 0%, #fbd3e6 100%); }
.section-theme-4 { background:linear-gradient(180deg,#fbd3e6 0%, #f9c6dd 100%); }
.section-theme-5 { background:linear-gradient(180deg,#f9c6dd 0%, #f7b9d5 100%); }

/* Adjust dividers to sit flush (remove old band top line) */
.section-theme-1:before, .section-theme-2:before, .section-theme-3:before, .section-theme-4:before, .section-theme-5:before { display:none !important; }
.band { padding:90px 0 80px; }
.shape-divider + .band { padding-top:110px; }
.shape-divider { color: var(--primary-color); }
.magenta-wave-2 { color: var(--primary-dark); }
.magenta-wave-3 { color: var(--primary-color); }
/* Flip variant inherits color */

@media (max-width:900px){
  .shape-divider svg { height:60px; }
  .shape-divider + .band { padding-top:90px; }
}

.centered { text-align:center; }
