/* ==== RESET & BASE ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* ==== HEADER Y MENÚ ==== */
header {
	position: sticky;
	top: 0;
	z-index: 999;
	background-color: white;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.top-bar {
  background-color: #f4f4f4;
  padding: 0.5rem;
  font-size: 0.9rem;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.navbar {
  background-color: #003366;
  color: white;
  padding: 1rem 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.navbar .logo img {
  height: 50px;
}
.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.navbar nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ==== HERO ==== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/fondo-comunidad.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}
.hero .container {
  max-width: 800px;
  margin: auto;
}
.hero h2 {
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn {
  background-color: #0066cc;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

/* ==== VENTAJAS ==== */
.ventajas {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
}
.ventaja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.ventaja {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ==== SERVICIOS ==== */
.servicios {
  background-color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.servicio img {
  width: 100%;
  max-width: 80px;
  margin-bottom: 1rem;
}

/* ==== NOSOTROS ==== */
.nosotros {
  background-color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}
.nosotros p {
  margin-bottom: 1rem;
}

/* ==== ESTADÍSTICAS ==== */
.estadisticas {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
}
.estadisticas-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}
.item-estadistica {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.item-estadistica.visible {
  opacity: 1;
  transform: translateY(0);
}
.circulo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #003366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* ==== SECCIÓN OPINIONES ==== */
.opiniones {
	background-color: #f9f9f9;
	padding: 4rem 2rem;
	text-align: center;
}

.opiniones h2 {
	font-size: 2rem;
	color: #003366;
	margin-bottom: 2rem;
}

.carousel {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
	animation: fadeIn 0.5s ease-in-out;
}

.ficha-opinion {
	background: white;
	border: 1px solid #ccc;
	border-radius: 12px;
	padding: 1.5rem;
	max-width: 320px;
	min-width: 280px;
	flex: 1 1 280px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	text-align: left;
}

.ficha-opinion:hover {
	transform: translateY(-5px);
}

.ficha-opinion .estrellas {
	color: #FFD700;
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}

.ficha-opinion .texto {
	font-style: italic;
	font-size: 1.05rem;
	margin-bottom: 0.8rem;
	color: #333;
}

.ficha-opinion .autor {
	font-weight: bold;
	font-size: 0.95rem;
	color: #003366;
}

@
keyframes fadeIn {from { opacity:0;
	transform: translateY(15px);
}

to {
	opacity: 1;
	transform: translateY(0);
}

}

/* ==== SECCIÓN PRESUPUESTO ==== */
.presupuesto {
	background-color: #f4f4f4;
	padding: 4rem 2rem;
	text-align: center;
}

.presupuesto form {
	max-width: 600px;
	margin: auto;
	text-align: left;
}

.presupuesto label {
	display: block;
	margin-top: 1rem;
	font-weight: bold;
}

.presupuesto input, .presupuesto textarea {
	width: 100%;
	padding: 0.5rem;
	margin-top: 0.3rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.presupuesto .checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.presupuesto button {
	margin-top: 1.5rem;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* ==== CONTACTO ==== */
.contacto {
  background: linear-gradient(to right, #001f3f, #003366);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}
.mapa-contacto {
  margin-top: 2rem;
}
.botones-contacto {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-contacto {
  background-color: #0066cc;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.datos-contacto a {
  color: white;
  text-decoration: none;
}

.datos-contacto a:hover {
  text-decoration: underline;
}

/* ==== SECCIÓN ACCESO PRIVADO ==== */
.acceso-privado {
	background-color: #003366;
	color: white;
	padding: 4rem 2rem;
	text-align: center;
}

.acceso-privado h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

.acceso-privado p {
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

.acceso-privado .btn {
	background-color: #aad4ff;
	color: #003366;
	padding: 0.75rem 1.5rem;
	font-weight: bold;
	border: none;
	border-radius: 6px;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.3s;
}

.acceso-privado .btn:hover {
	background-color: #87cfff;
}

/* ==== FOOTER ==== */
.footer {
  background-color: #003366;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}
.footer a {
  color: #aad4ff;
  text-decoration: none;
  margin: 0 0.5rem;
}

/* ==== COOKIES ==== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}
.cookie-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.cookie-buttons button {
  background-color: #003366;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

/* ==== TOOLTIP ==== */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 300px;
  background-color: #003366;
  color: white;
  border-radius: 6px;
  padding: 1rem;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
}
.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ==== BOTON WHATSAPP ==== */
.whatsapp-float {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease;
}

.whatsapp-float img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.whatsapp-float:hover {
	transform: scale(1.1);
}
