/*
Theme Name: Acandela Theme
Theme URI: https://acandelayasociados.com.pe
Author: Diego Sanchez
Author URI: https://acandelayasociados.com.pe
Description: Tema ligero, animado y funcional.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acandelayasoaciados
*/

/* style.css - estilos globales del proyecto */

/* Fuentes locales (descargadas de Google Fonts) - en la carpeta `includes/Montserrat/` */
@font-face {
  font-family: 'Montserrat';
  src: url('includes/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('includes/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root{
	/* Paleta del proyecto */
	--color-blue: #183e75;    /* azul principal */
	--color-orange: #f3910a;  /* naranja acento */
	--color-plomo: #5b5a5a;   /* plomo */
	--color-plomo-2: #343434; /* variación más oscura */
	--color-plomo-3: #dcdbdb; /* (repetido por compatibilidad con el pedido) */

	--text-color: #222;
	--bg-light: #ffffff;
}
.inactivo{display: none;}
/* Reset y base */
*{box-sizing:border-box}
html,body{height:100%}
body{
	margin:0;
    overflow-x: hidden;
	font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color:var(--text-color);
	background:var(--bg-light);
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
}

/* Enlaces: sin subrayado por defecto; mantener contraste y foco accesible */
a{color:inherit;text-decoration:none}
a:hover,a:active{color:var(--color-blue);text-decoration:none}
a:focus{outline:3px solid rgba(24,62,117,0.15);outline-offset:2px}

/* Quitar bordes redondeados de todos los botones */
.btn{border-radius:0 !important}

/* Botones utilitarios usando la paleta */
.btn-primary-blue{
	background-color:var(--color-blue);
	color:#fff;
	border-color:var(--color-blue);
}
.btn-primary-blue:hover{filter:brightness(0.92)}

.btn-accent-orange{
	background-color:var(--color-orange);
	color:#fff;
	border-color:var(--color-orange);
}

/* Clases de fondo rápidas */
.bg-blue{background-color:var(--color-blue);color:#fff}
.bg-orange{background-color:var(--color-orange);color:#fff}
.bg-plomo{background-color:var(--color-plomo);color:#fff}
.bg-plomo-2{background-color:var(--color-plomo-2);color:#fff}
.bg-plomo-3{background-color:var(--color-plomo-3);}

/* Componentes pequeños */
.site-header{background:#f8f9fa}
.site-footer{background:var(--color-plomo-2);color:#fff}

/* Utilities */
.text-primary-blue{color:var(--color-blue)}
.text-accent-orange{color:var(--color-orange)}
.bottom-10{bottom: 10%;}
/* Top strip moved from inline -> reusable class */
.top-strip{
	width:100%;
	height:50px; /* altura que ajustaste */
	background-color:var(--color-blue);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: #050505;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #183e75;
  animation: preloader-spin 0.9s linear infinite;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header / nav specific */
.header-nav .nav{gap:0.5rem;align-items:center}
.header-nav .nav-link{padding:.25rem .5rem}
.header-nav .nav-link.text-uppercase{font-weight:600}

.header-nav .dropdown-menu a.dropdown-item{white-space:nowrap}

/* Ensure contact button uses project blue and uppercase */
.btn-primary-blue{background-color:var(--color-blue);border-color:var(--color-blue);}
.btn-primary-blue:hover{filter:brightness(0.92)}

/* Dropdown items: texto oscuro y en mayúsculas según petición */
.dropdown-menu{
	/* fondo por defecto de Bootstrap; dejamos blanco para contraste */
	background:#fff;
}
.dropdown-item{color:var(--text-color) !important;text-transform:uppercase;font-weight:300}
.dropdown-item:hover, .dropdown-item:focus{background-color:rgba(0,0,0,0.03);color:var(--text-color) !important}

.dropdown-item{color:var(--text-color) !important;text-transform:uppercase;font-weight:300}
.dropdown-item:hover, .dropdown-item:focus{background-color:rgba(0,0,0,0.03);color:var(--text-color) !important}

/* Hover navlink */
.nav-link:hover{
  background-color: var(--color-blue);
  color: white;
}
/* animación cursor */
.cursor-ripple {
  position: fixed;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #183e75;
  background: rgba(248, 248, 248, 1);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  transition: transform 0.45s ease, opacity 0.35s ease;
  z-index: 5000;
}

.cursor-ripple.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.4);
}

/* Carousel with text overlay styles */
.carousel-with-text {
	position: relative;
}

.carousel-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.carousel-text-content {
	text-align: left;
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	width: 50%;
	padding: 0 20px;
    margin: auto 0 12em 0;
}

.carousel-text-primary {
	font-size: 3.15rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.2;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-text-secondary {
	font-size: 4.5rem;
	font-weight: 600;
	margin: 0rem 0 0 0;
	line-height: 1.2;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-text-tertiary {
	font-size: 1.82rem;
	font-weight: 400;
	margin: 1rem 0 0 0;
	line-height: 1.4;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Indicadores en forma de bolitas */
.carousel-indicators-dots {
	bottom: 20px;
	position: absolute;
	z-index: 15;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.carousel-indicators-dots button {
	width: 12px !important;
	height: 12px !important;
	border-radius: 50%;
	border: 2px solid white;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}
.carousel-indicators [data-bs-target]{
    border-top: none;
    border-bottom: none;
}

.carousel-indicators-dots button.active {
	background-color: white;
	box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6);
}

.carousel-indicators-dots button:hover {
	background-color: rgba(255, 255, 255, 0.8);
}
/* Animación adicional slider */
@media (hover: hover) and (pointer: fine) {
  #mainSlider .carousel-item {
    overflow: hidden; /* evita que la imagen escalada sobresalga */
  }

  #mainSlider .carousel-item img {
    transition: transform 0.60s ease-out;
    will-change: transform;
  }
}

/* Navbar responsive: cuando el menú está colapsado, elementos en columna */
@media (max-width: 991.98px) {
	.navbar-collapse {
		flex-direction: column !important;
		align-items: center;
		padding-top: 1rem;
	}
	.navbar-nav {
		flex-direction: column;
		align-items: center;
		width: 100%;
	}
	.nav-item {
		width: 100%;
		text-align: center;
	}
	.nav-link {
		display: block;
		padding: 0.75rem 0 !important;
	}
}

.btn-contacto{
    max-width: 100%;
    width: 180px;
}

#mainSlider{
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}
/* Seccion quienes somos */
.accent-line {
    width: 56px;
    height: 3px;
    background-color: #f39c12;
}
.about-section{
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}
/* seccion porque */
.why-section{
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}
.accent-line {
  width: 56px;
  height: 3px;
  background-color: #f39c12;
}

.feature-card {
  padding: 5px 20px 0px;}

.feature-head {
  padding: 25px 10px;
  margin-top: -50px;
  margin-bottom: 10px;
}

.mission-card {
  padding: 48px 12px;
}

.vision-card {
  background: var(--color-orange);
  padding: 26px 30px;
  border-radius: 4px;
  font-weight: 500;
  line-height: 1.7;
}
/* seccion fundador */
.founder-section {
    clip-path: polygon(50% 10%, 100% 0%, 100% 90%, 50% 100%, 0 90%, 0 0%);
}

.timeline-card {
  background: #5b5a5a;
  padding: 20px 24px;
  text-align: center;
  width: 250px;
  max-width: 100%;
}

.timeline-card h5 {
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.timeline-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #d7d7d7;
  text-transform: uppercase;
}

.founder-photo {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.founder-photo img {
  flex: 1;
  width: 100%;
  height: 120%;
  margin-top: 30px;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  right: 0;
  bottom: 30px;
  width: 80%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 0;
}



@media (max-width: 991.98px) {
  .founder-photo {
    max-width: 360px;
    margin: 0 auto;
  }
  .timeline-card {
    max-width: 360px;
    margin: 0 auto;
  }
}
/* Seccion swervicios */
.services-section {
  background: #fdfdfd;
  color: #3c3c3c;
}

.accent-line {
  width: 56px;
  height: 3px;
  background: #f39c12;
}

.carta-fianza {
  border: 2px solid #5e5e5e;
  padding: 20px 18px 24px;
  position: relative;
  max-width: 650px;
}

.carta-head {
  background: #5e5e5e;
  color: #fff;
  display: inline-block;
  padding: 18px 28px;
  margin-top: -55px;
  max-width: 200px;
}

.service-block{
    text-align: center;
}

.service-block + .service-block {
  margin-top: 56px;
}

.service-title {
  border: 2px solid #f39c12;
  display: inline-block;
  padding: 8px 32px;
  font-size: 1.2rem;
  margin-bottom: 26px;
}

.service-card {
  background: #5b5a5a;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  padding: 26px 14px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.service-card.highlight {
  background: #f39c12;
  color: #fff;
  text-transform: none;
  font-weight: 600;
  line-height: 1.5;
}
.iconos-servicios{
    width: 4.5em;
}

@media (max-width: 767.98px) {
  .service-card {
    min-height: 100px;
  }
  .service-title {
    width: 100%;
    text-align: center;
  }
}
/* carrusel de marcas */
.partners-section {
  background: #dedede;
}

.partner-carousel .carousel-inner {
  padding: 24px 0;
}

.partner-logo {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.partner-carousel .carousel-control-prev,
.partner-carousel .carousel-control-next {
  width: auto;
  padding: 0 1rem;
  opacity: 0.9;
}

.partner-carousel .carousel-control-prev-icon,
.partner-carousel .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  background-size: 2rem 2rem;
}

.partner-carousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}

.partner-carousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

@media (max-width: 575.98px) {
  .partner-logo {
    padding: 16px;
  }
}

.clients-section {
  background: #fff;
}

.clients-divider {
  width: 60px;
  height: 3px;
  background: #c1c1c1;
}

.client-logo-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 18px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #ededed;
}

.client-logo-card img {
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.client-logo-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.testimonio-clientes {
  background: #f7f7f7;
}

.testimonial-card {
  background: #e6e6e6;
  border-radius: 24px;
  padding: 28px 32px;
  height: 100%;
  position: relative;
}

.testimonial-quote, .testimonial-quote2 {
  font-style: italic;
  color: #4a4a4a;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-quote::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 45px;
  width: 22px;
  height: 22px;
  background: #e6e6e6;
  transform: rotate(45deg);
}
.testimonial-quote2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: 45px;
  width: 22px;
  height: 22px;
  background: #e6e6e6;
  transform: rotate(45deg);
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-role {
  font-size: 0.9rem;
  color: #6f6f6f;
}

/* formulario de contacto */
.contact-section {
  background: url('includes/img/contact-bg.jpg') center/cover no-repeat;
  background-size: cover 150%;
  transition: background-position 0.8s ease;
  position: relative;
  overflow: hidden;
}


.contact-overlay {
  background: rgba(15, 15, 15, 0.30);
}

.contact-logo {
  width: 220px;
  max-width: 100%;
}

.contact-form {
  background: rgba(0, 0, 0, 0.55);

}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 0;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border: 1px solid #f39c12;
  background: #fff;
}

.contact-form label {
  letter-spacing: 0.08em;
}

.tracking-wide {
  letter-spacing: 0.12em;
}

 /* Footer */
.footer-main {
  font-size: 0.9rem;
}

.footer-logo {
  width: 240px;
  max-width: 100%;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.85;
}

.footer-social {
  width: 38px;
  height: 38px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social:hover {
  background: #fff;
  color: var(--color-orange, #f39c12);
}

.footer-credit {
  background: #2b2b2b;
  font-size: 0.8rem;
  padding: 12px 0;
}
/* Pagina interna */
.socio-logo{
    width: 280px;
    max-width: 100%;
}
.seccion-socios  {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}
.seccion-medios{
    clip-path: polygon(50% 0%, 100% 0%, 100% 95%, 50% 100%, 0 95%, 0 0%);
}
.contact-section-intern {
    clip-path: polygon(50% 10%, 100% 0%, 100% 100%, 50% 100%, 0 100%, 0 0%);
}
.testimonio-clientes{
    margin-top: -25%;
}
.img-medios{
    border-radius: 0 0 20% 20%;
}
.separador-testimonio{height: 380px;}
.agrandar{
  transition: 0.3s ease-out;
}
.agrandar:hover{
  scale: 105%;
  transition: 0.3s ease-out;
}
.posthome{
  height: 500px;
}
/* boton whats app */
.boton-flotante{
    width: 70px;
    height: 70px; 
    font-size: 2.9em;
    padding: 0.02em;

}
.boton-whatsapp{
    right: 25px;
    bottom: 30px;
}
/* Paginación */
.pagination{
  justify-content: center;
  font-weight: bold;
}
.pagination .nav-links span, .pagination .nav-links a{
  padding: 0.5em 0.5em;
}
.pagination .nav-links span, .pagination .nav-links a:hover{
  background-color: var(--color-blue);
  color: white;
}
/* Seccion responsive */
/* xxl ≥1400px */
@media (max-width: 1400px) {
    .carousel-text-primary {
        font-size: 2.65rem;
    }

    .carousel-text-secondary {
        font-size: 4rem;
    }

    .carousel-text-tertiary {
        font-size: 1.32rem;
    }
  .separador-testimonio{height: 200px;}
  .posthome{
  height: 480px;
  }
}
/* xl ≥1200px */
@media (max-width: 1200px) {
    .carousel-text-primary {
        font-size: 2rem;
    }

    .carousel-text-secondary {
        font-size: 3.0rem;
    }

    .carousel-text-tertiary {
        font-size: 1rem;
        margin: 0rem 0 0 0;
    }
    .separador-testimonio{height: 150px;}
    .posthome{
    height: 440px;
    }
}
/* lg ≥992px */
@media (max-width: 992px) {
    .carousel-text-primary {
        font-size: 1.5rem;
    }

    .carousel-text-secondary {
        font-size: 2rem;
    }

    .carousel-text-tertiary {
        font-size: 1rem;
    }
    .carousel-text-content {
    margin: auto 0 8em 0;
    }  
    #mainSlider{
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }
    .about-section, .seccion-socios{
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }
    .why-section{
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }
    .founder-section {
    clip-path: polygon(50% 2%, 100% 0%, 100% 98%, 50% 100%, 0 98%, 0 0%);
    }
    .contact-section-intern, .seccion-medios{
    clip-path: polygon(50% 2%, 100% 0%, 100% 100%, 50% 100%, 0 100%, 0 0%);
    }
    .separador-testimonio{height: 100px;}
    .posthome{
    height: 370px;
    }
}
/* md ≥768px */
@media (max-width: 768px) {
    .carousel-text-content {
    margin: auto 0 3em 0;
    }
    .separador-testimonio{height: 0px;}
    .posthome{
    height: 310px;
    }
}
/* sm ≥576px */
@media (max-width: 576px) {
    .carousel-text-primary {
        font-size: 1rem;
    }

    .carousel-text-secondary {
        font-size: 1.3rem;
    }

    .carousel-text-tertiary {
        display: none;
    }
    .carousel-text-content {
    margin: auto 0 3em 0;
    }  
    .posthome{
    height: 290px;
    }
}
/* sm ≥576px */
@media (max-width: 450px) {
    .posthome{
    height: 250px;
    }
}




