/*
	Theme Name: CVALL - Master
	License: MIT
*/

@import url('css/header.css');
@import url('css/forms.css');


/* ======================================================
   01. VARIABLES GLOBALES
====================================================== */

:root {
    /* Layout */
    --cvall-site-width: 1400px;
    --cvall-space-desktop: 32px;
    --cvall-space-tablet: 24px;
    --cvall-space-mobile: 16px;

    /* Header */
    --cvall-header-height: 90px;
    --cvall-header-height-tablet: 78px;
    --cvall-header-height-mobile: 68px;

    /* Fonts */
    --font-title: 'Playfair Display', serif;
    --font-ui: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ======================================================
   02. RESET / BASE GLOBAL
====================================================== */

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

html {
    scroll-behavior: smooth;}

body {
    margin: 0; padding: 0;
    color: #111;
    font-family: var(--font-ui); font-size: 16px; line-height: 1.55;
    overflow-x: hidden;}

img {
    max-width: 100%; height: auto;}

a {
    transition:
        color .25s ease,
        opacity .25s ease,
        transform .25s ease;}

p {	margin-top: 0;}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0; }
	
/* CVALL - Titulos mas fuertes */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -1px;
  color: #111 !important; }

/* Tamaños */

h1 { font-size: clamp(38px, 5vw, 50px) !important; }

h2 { font-size: clamp(32px, 4vw, 45px) !important; }

h3 { font-size: clamp(28px, 3vw, 40px) !important; }

h4 { font-size: clamp(24px, 2.5vw, 34px) !important; }

h5 { font-size: clamp(20px, 2vw, 28px) !important; }

h6 { font-size: clamp(18px, 1.5vw, 22px) !important; }

	
/* CVALL - Tipografia moderna Fontaneros */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

body,
p,
li,
span,
input,
textarea,
select {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.vc_tta-title-text,
.main_title,
.page_title {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px;
  color: #111;
}



/* CVALL – Layout contenido */

body {
  overflow-x: hidden; background: #f5f5f5;}


.home-page > section > .cvall-inner {
	width: 100%; max-width: var(--cvall-site-width); 
	margin-left: auto; margin-right: auto;
    padding-left: var(--cvall-space-desktop); padding-right: var(--cvall-space-desktop); }

.home-page {
    position: relative; padding-top: 0; overflow: hidden; }
	
/* Compatibilidad con templates antiguos */
.container {
    width: 100%;
    max-width: var(--cvall-site-width);
    margin-left: auto; margin-right: auto;
    padding-left: var(--cvall-space-desktop);
    padding-right: var(--cvall-space-desktop);
}

/* Secciones nuevas */
.cvall-section {
    padding-top: 80px;
    padding-bottom: 80px; 
	max-width: var(--cvall-site-width);
	margin: 0 auto;
}

/* BLOQUES */

.cvall-block {
	background: #fff;
	border-radius: 28px; padding: 60px; margin-bottom: 30px;  box-sizing: border-box; }

/* GRID */

.cvall-grid-2 {
	display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }


/* ======================================================
   RESPONSIVE TABLET
====================================================== */

@media (max-width: 900px) {
    .home-page > section > .cvall-inner,
    .container {
        padding-left: var(--cvall-space-tablet);
        padding-right: var(--cvall-space-tablet); }
    .cvall-section {
        padding-top: 64px;  padding-bottom: 64px; }
}

/* ======================================================
   RESPONSIVE MOBILE
====================================================== */

@media (max-width: 778px) {
	.cvall-block { padding: 25px; border-radius: 18px; }
	.cvall-grid-2 { grid-template-columns: 1fr; gap: 30px; }
}

/* ======================================================
   RESPONSIVE MOBILE CHICO
====================================================== */

@media (max-width: 480px) {


}

/* CVALL - Imagenes con efecto elegante */
.wpb_single_image img {
  height: auto;
  max-width: 100%;
  vertical-align: top;

  border-radius: 18px;
  overflow: hidden;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.12),
    0 4px 10px rgba(0,0,0,0.08);

  transition: all 0.35s ease;
}

/* Hover suave */
.wpb_single_image img:hover {
  transform: translateY(-4px) scale(1.01);

  box-shadow:
    0 18px 45px rgba(0,0,0,0.18),
    0 8px 18px rgba(0,0,0,0.12);
}


/* CVALL - Acordeon Fontaneros moderno */
.vc_tta-container .vc_tta.vc_tta-accordion {
  background: transparent !important;
}

.vc_tta-container .vc_tta-panel {
  margin-bottom: 14px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.10) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}

.vc_tta-container .vc_tta-panel-heading {
  border: none !important;
  background: linear-gradient(135deg, #0b5f8a, #0786bd) !important;
}

.vc_tta-container .vc_tta-panel-title > a {
  padding: 18px 55px 18px 22px !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.vc_tta-container .vc_tta-title-text {
  color: #fff !important;
}

.vc_tta-container .vc_tta-controls-icon::before,
.vc_tta-container .vc_tta-controls-icon::after {
  border-color: #fff !important;
}

.vc_tta-container .vc_tta-panel-body {
  background: #fff !important;
  padding: 24px 26px !important;
  border: none !important;
  color: #333 !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

.vc_tta-container .vc_tta-panel-body p {
  margin-bottom: 0 !important;
}

/* Panel abierto */
.vc_tta-container .vc_tta-panel.vc_active {
  box-shadow: 0 16px 42px rgba(0,0,0,0.16) !important;
}

/* Hover */
.vc_tta-container .vc_tta-panel-heading:hover {
  background: linear-gradient(135deg, #08496b, #0677a8) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .vc_tta-container .vc_tta-panel-title > a {
    font-size: 16px !important;
    padding: 16px 48px 16px 18px !important;
  }

  .vc_tta-container .vc_tta-panel-body {
    padding: 20px 18px !important;
    font-size: 15px !important;
  }
}


.fondo-footer {
  background-color: #000 !important;
  padding: 25px;
}

/* Footer negro estilo top */
#footer.fondo-a,
#footer {
    background: #000 !important;
    color: #fff !important;
    padding: 14px 0;
}

#footer .cvall-footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

#footer .cvall-top-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

#footer .cvall-top-icon {
    color: #f5b400;
    font-size: 17px;
}

#footer .cvall-top-item a {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

#footer .cvall-top-item a:hover {
    color: #f5b400 !important;
}

#footer .cvall-separator {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.35);
}

@media (max-width: 767px) {
    #footer .cvall-footer-inner {
        flex-direction: column;
        gap: 10px;
    }

    #footer .cvall-separator {
        display: none;
    }
}