/* =====================================================
   Águilas Code – Tema PWA · main.css
   v3.0.0 · 16 ago 2026
   Mobile-first + el MISMO menú de hamburguesa en cualquier
   tamaño de pantalla (celular, tablet, escritorio), para que
   el header y el footer nunca se vean anchos ni amontonados.
   ===================================================== */

:root {
	--cc-blue: #1565c0;
	--cc-blue-dark: #0d3f78;
	--cc-blue-light: #e8f1fb;
	--cc-teal: #0ea5a0;
	--cc-gradient: linear-gradient(135deg, #14b8a6 0%, #1565c0 100%);
	--cc-accent: #fb923c;
	--cc-whatsapp: #25d366;
	--cc-white: #ffffff;
	--cc-gray: #5a6472;
	--cc-gray-light: #f4f6f8;
	--cc-bg-soft: #f3f7fb;
	--cc-success: #2e7d32;
	--cc-danger: #c62828;
	--cc-warning: #f9a825;

	--cc-radius: 14px;
	--cc-radius-lg: 22px;
	--cc-shadow: 0 4px 18px rgba(13,63,120,.08);
	--cc-shadow-lg: 0 16px 38px rgba(13,63,120,.16);
	--cc-max-width: 1180px;
	--cc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--cc-barra-alto: 66px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--cc-font);
	color: #1a2233;
	line-height: 1.6;
	font-size: 17px;
	background: var(--cc-white);
	padding-bottom: var(--cc-barra-alto);
}
@media (min-width: 900px) {
	body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cc-blue); text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--cc-blue-dark); font-weight: 800; }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.cc-container {
	width: 100%;
	max-width: var(--cc-max-width);
	margin: 0 auto;
	padding: 0 18px;
}

/* =================== BOTONES =================== */
.cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 26px;
	border-radius: 999px;
	font-weight: 700;
	cursor: pointer;
	border: none;
	font-size: 1.02rem;
	min-height: 52px;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}
.cc-btn:active { transform: scale(0.97); }
.cc-btn-primary { background: var(--cc-gradient); color: var(--cc-white); box-shadow: 0 8px 20px rgba(21,101,192,.28); }
.cc-btn-primary:hover { opacity: .92; }
.cc-btn-light { background: var(--cc-white); color: var(--cc-blue-dark); }
.cc-btn-outline { background: transparent; color: var(--cc-blue-dark); border: 2px solid var(--cc-blue); }
.cc-btn-outline-light { background: rgba(255,255,255,.12); color: var(--cc-white); border: 2px solid rgba(255,255,255,.75); backdrop-filter: blur(2px); }
.cc-btn-lg { padding: 18px 32px; font-size: 1.12rem; min-height: 58px; }
.cc-btn:disabled { opacity: .4; cursor: not-allowed; }

/* =================== HEADER — SIEMPRE con hamburguesa =================== */
.cc-header {
	background: var(--cc-white);
	box-shadow: var(--cc-shadow);
	position: sticky;
	top: 0;
	z-index: 200;
}
.cc-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	gap: 10px;
}
.cc-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.cc-logo-img img { max-height: 40px; width: auto; display: block; }
.cc-logo-texto {
	font-weight: 800; font-size: 1.15rem; color: var(--cc-blue-dark);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 900px) {
	.cc-logo-img img { max-height: 46px; }
	.cc-logo-texto { font-size: 1.3rem; }
}

.cc-header-derecha { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cc-header-cta { padding: 10px 16px; font-size: .92rem; min-height: 42px; white-space: nowrap; }
@media (min-width: 900px) {
	.cc-header-cta { padding: 12px 20px; font-size: .98rem; min-height: 46px; }
}

.cc-menu-toggle {
	display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
	width: 44px; height: 44px; background: var(--cc-bg-soft); border: none; border-radius: 12px;
	cursor: pointer; padding: 0; flex-shrink: 0;
}
.cc-menu-toggle span { display: block; width: 20px; height: 3px; background: var(--cc-blue-dark); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.cc-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.cc-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cc-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* IMPORTANTE: a propósito NO hay "@media (min-width:900px){.cc-menu-toggle{display:none}}".
   El botón de hamburguesa se queda visible en cualquier tamaño de pantalla,
   tal como se pidió: mismo menú compacto en escritorio, tablet y celular. */

/* =================== DRAWER (menú lateral, igual en todos los tamaños) =================== */
.cc-drawer-fondo {
	position: fixed; inset: 0; background: rgba(10,20,40,.5); z-index: 299;
	opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cc-drawer-fondo.is-open { opacity: 1; pointer-events: auto; }

.cc-drawer {
	position: fixed; top: 0; right: -100%; bottom: 0;
	width: min(86%, 360px);
	background: var(--cc-white);
	box-shadow: -10px 0 30px rgba(0,0,0,.18);
	padding: max(20px, env(safe-area-inset-top)) 22px 30px;
	transition: right .3s cubic-bezier(.22,1,.36,1);
	z-index: 300;
	overflow-y: auto;
}
.cc-drawer.is-open { right: 0; }

.cc-drawer-cerrar {
	position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
	border: none; background: var(--cc-bg-soft); font-size: 1.4rem; line-height: 1; color: var(--cc-gray); cursor: pointer;
}

.cc-drawer-acciones { margin: 46px 0 22px; display: flex; flex-direction: column; gap: 12px; }
.cc-drawer-reservar { width: 100%; }
.cc-drawer-contacto-rapido { display: flex; gap: 10px; }
.cc-btn-contacto { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; border-radius: 999px; font-weight: 700; font-size: .92rem; border: 2px solid #e2e8f0; }
.cc-btn-llamar { color: var(--cc-blue-dark); border-color: var(--cc-blue-light); background: var(--cc-blue-light); }
.cc-btn-whatsapp { color: #0d7a3f; border-color: #d3f5e2; background: #e8fbef; }

.cc-nav-list { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid #eef1f5; }
.cc-nav-list li { border-bottom: 1px solid #eef1f5; }
.cc-nav-list a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-weight: 700; font-size: 1.08rem; color: var(--cc-blue-dark); }
.cc-nav-list a::after { content: '›'; color: #c3ccd8; font-size: 1.3rem; font-weight: 400; }

/* =================== BARRA FIJA INFERIOR (solo celular) =================== */
.cc-barra-inferior {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
	display: flex; gap: 10px; background: var(--cc-white); border-top: 1px solid #e7ecf3;
	padding: 10px 14px max(10px, env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(13,23,42,.08);
}
.cc-barra-btn { flex: 1; text-align: center; padding: 13px 10px; border-radius: 999px; font-weight: 700; font-size: .96rem; }
.cc-barra-contacto { background: #e8fbef; color: #0d7a3f; flex: 0 0 42%; }
.cc-barra-reservar { background: var(--cc-gradient); color: #fff; box-shadow: 0 6px 16px rgba(21,101,192,.3); }
@media (min-width: 900px) {
	.cc-barra-inferior { display: none; } /* en escritorio el botón "Reservar ahora" del header ya está siempre a la vista */
}

/* =================== HERO =================== */
.cc-hero {
	position: relative;
	background: linear-gradient(160deg, var(--cc-blue-light) 0%, #eafaf8 55%, var(--cc-white) 100%);
	padding: 44px 0 52px;
	text-align: center;
	overflow: hidden;
}
.cc-hero-badge { display: inline-block; background: var(--cc-white); color: var(--cc-teal); font-weight: 700; font-size: .82rem; padding: 7px 16px; border-radius: 999px; box-shadow: var(--cc-shadow); margin-bottom: 16px; }
.cc-hero-text p { font-size: 1.12rem; color: var(--cc-gray); margin-bottom: 26px; }
.cc-hero-botones { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cc-hero-botones .cc-btn { width: 100%; }
.cc-hero-nota { font-size: .9rem; color: var(--cc-gray); margin: 18px 0 0; }

@media (min-width: 640px) {
	.cc-hero-botones { flex-direction: row; justify-content: center; }
	.cc-hero-botones .cc-btn { width: auto; }
}
@media (min-width: 900px) {
	.cc-hero { padding: 104px 0 112px; }
	.cc-hero-text { max-width: 720px; margin: 0 auto; }
}

/* ---- Hero con fondo de video/foto (configurado en Personalizar) ---- */
.cc-hero-media-fondo { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--cc-blue-dark); }
.cc-hero-media-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-hero-media .cc-hero-overlay {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(160deg, rgba(13,42,80,1) 0%, rgba(10,120,115,1) 100%);
	opacity: var(--cc-hero-oscurecer, .55);
}
.cc-hero-media .cc-hero-inner { position: relative; z-index: 2; }
.cc-hero-media .cc-hero-badge { background: rgba(255,255,255,.95); }
.cc-hero-media h1,
.cc-hero-media .cc-hero-text p,
.cc-hero-media .cc-hero-nota { color: #fff; }
.cc-hero-media .cc-btn-outline { color: #fff; border-color: rgba(255,255,255,.8); }

/* =================== SECCIONES / GRID =================== */
.cc-section { padding: 50px 0; }
.cc-section-title { text-align: center; margin-bottom: 34px; }
.cc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cc-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cc-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.cc-card { background: var(--cc-white); border: 1px solid #eef1f5; border-radius: var(--cc-radius-lg); padding: 28px 24px; box-shadow: var(--cc-shadow); }
.cc-card-servicio { text-align: left; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cc-card-servicio:hover { transform: translateY(-4px); box-shadow: var(--cc-shadow-lg); }

/* Tarjeta de servicio con enlace configurado en Personalizar > Servicios */
a.cc-card-clickable { display: block; text-decoration: none; color: inherit; cursor: pointer; }
a.cc-card-clickable:hover { border-color: var(--cc-teal); }
a.cc-card-clickable:focus-visible { outline: 3px solid var(--cc-teal); outline-offset: 3px; }

.cc-card-ver-mas {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 16px; font-weight: 700; font-size: .92rem; color: var(--cc-teal);
}
.cc-card-flecha { width: 17px; height: 17px; transition: transform .2s ease; }
a.cc-card-clickable:hover .cc-card-flecha { transform: translateX(5px); }
.cc-servicio-icono { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.cc-servicio-icono svg { width: 30px; height: 30px; }
.cc-icono-regular { background: var(--cc-blue-light); color: var(--cc-blue); }
.cc-icono-profunda { background: #e6f7f5; color: var(--cc-teal); }
.cc-icono-oficina { background: #fff1e6; color: var(--cc-accent); }

/* =================== Franja de confianza =================== */
.cc-confianza { background: var(--cc-bg-soft); padding: 30px 0; }
.cc-confianza-grid { display: grid; gap: 16px; grid-template-columns: 1fr; text-align: center; }
.cc-confianza-item { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; color: var(--cc-blue-dark); font-size: .96rem; }
.cc-confianza-icono { font-size: 1.3rem; }
@media (min-width: 700px) { .cc-confianza-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cc-confianza-grid { grid-template-columns: repeat(4, 1fr); } }

/* =================== CTA banner =================== */
.cc-cta-banner { background: var(--cc-gradient); color: var(--cc-white); text-align: center; padding: 52px 16px; }
.cc-cta-banner h2 { color: var(--cc-white); }
.cc-cta-banner-botones { max-width: 460px; margin: 0 auto; }

/* =================== FOOTER — barra angosta + acordeón =================== */
.cc-footer { background: var(--cc-blue-dark); color: #cfe0f5; }
.cc-footer h3, .cc-footer h4 { color: var(--cc-white); }
.cc-footer a { color: #cfe0f5; }
.cc-footer-contacto a { display: inline-block; font-weight: 600; }

.cc-footer-slim { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0; }
.cc-footer-slim-info { display: flex; align-items: baseline; gap: 8px; font-size: .95rem; }
.cc-footer-slim-info strong { color: var(--cc-white); font-size: 1.05rem; }
.cc-footer-slim-info span { opacity: .75; }

.cc-footer-detalles { width: 100%; }
.cc-footer-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255,255,255,.08); color: var(--cc-white);
	padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem;
	cursor: pointer; list-style: none; user-select: none;
}
.cc-footer-toggle::-webkit-details-marker { display: none; }
.cc-footer-toggle-icono { font-size: 1rem; }
.cc-footer-detalles[open] .cc-footer-toggle { background: rgba(255,255,255,.16); }

.cc-footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; padding: 26px 0 28px; }
@media (min-width: 700px) { .cc-footer-grid { grid-template-columns: repeat(3, 1fr); } }

.cc-footer-menu { list-style: none; margin: 0; padding: 0; }
.cc-footer-menu li { margin-bottom: 10px; }
.cc-footer-menu a:hover { color: #fff; text-decoration: underline; }
.cc-footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 18px; text-align: center; font-size: .85rem; }

/* =================== Contenido genérico de páginas =================== */
.cc-content { padding: 44px 0; }
.cc-page-title { margin-bottom: 8px; }
.cc-page-subtitle { color: var(--cc-gray); margin-bottom: 30px; }

img, table, .cc-grid, .cc-container { max-width: 100%; }

@media (max-width: 359px) {
	.cc-container { padding: 0 14px; }
	h1 { font-size: 1.7rem; }
	.cc-header-cta { padding: 9px 12px; font-size: .82rem; }
}
