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

:root {
  --primary: #b07070;
  --primary-light: #d4a0a0;
  --primary-dark: #8c5555;
  --bg: #fdf8f6;
  --bg-cream: #faf5f2;
  --text: #4a3535;
  --text-light: #8a7070;
  --white: #ffffff;
  --rose-light: #f5e8e4;
  --rose-medium: #e8cfc8;
  --accent-green: #25d366;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============ TOP BAR ============ */
.top-bar {
  display: none;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}
@media(min-width: 576px){
  .top-bar {
    display: block;
  }
}
.top-bar .container {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.top-bar a {
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.3s;
  font-size: 1rem;
}
.top-bar a:hover {
  opacity: 1;
}
.top-bar span {
  margin-right: 0.5rem;
}

/* ============ NAVBAR ============ */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.navbar-logo img {
  height: auto;
  width: 175px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar-links a {
  font-size: 1rem;
  color: #000;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}
.navbar-links a:hover {
  color: var(--primary);
}
.navbar-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: background 0.3s;
}
.navbar-cta:hover {
  background: var(--primary-dark);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media(min-width: 768px){
	.hero{
		height: 450px;
	}
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(253, 248, 246, 0.75) 30%,
    rgba(253, 248, 246, 0.45) 100%
  );
  z-index: 1;
}

.hero-watermark {
  display: block;
  position: absolute;
  bottom: -1%;
  left: 50%;
  transform: translateX(-50%); 
  white-space: nowrap; 
  width: auto;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.2;
  z-index: 1;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
@media(min-width: 768px){
	.hero-watermark{
		font-size: 7rem;
	}
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero p {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
  font-family: "Lato", sans-serif;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Lato", sans-serif;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============ SERVICES ============ */
.services {
  padding: 4rem 0;
  background: #fff;
}
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}
.services-wrapper {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.section-header {
    flex: 1; 
    text-align: left; 
}
.section-header h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-info h3 {
  font-size:1.75rem;
  color: var(--text);
}
.services-grid {
    flex: 1; 
    display: flex;
    flex-direction: row; 
    gap: 1rem;
}
.service-card {
  background: var(--bg-cream);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid var(--rose-light);
  display: flex;
  flex-direction: column;
  width: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(176, 112, 112, 0.1);
}
.service-card-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  object-fit: contain;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.service-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.service-card .btn-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  transition: color 0.3s;
}
.service-card .btn-link:hover {
  color: var(--primary-dark);
}
.meeting-steps {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--primary);
}

.meeting-steps h4 {
    color: var(--text);
    margin-bottom: .5rem;
}

.meeting-steps ul {
    list-style: none;
    padding: 0;
}

.meeting-steps li {
    font-size: 0.95rem;
}

.highlight-quote {
    font-style: italic;
    font-size: 1rem;
    color: var(--text);
}

.highlight-quote span {
    display: block;
    font-weight: 700;
    color: var(--primary);
}

/* ============ ABOUT ============ */
.about {
  padding: 4rem 0;
  background: var(--bg-cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.about-image {
  position: relative;
  order: 1;
}
.about-image img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  width: 400px;
  margin: 0 auto;
}
.about-image::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 15px;
  left: 15px;
  border-radius: 20px;
  border: 2px solid var(--rose-medium);
  z-index: -1;
}
.about-content{
	order: 2;
}
.about-content h2 {
  font-size: 2.2rem;
}
.about-content .matricula{
 margin-bottom: 1rem;   
}
.about-content p {
  font-size: 1rem;
  text-align: justify;
  color: var(--text);
  margin-bottom: 1rem;
}
.about-content strong {
  color: var(--text);
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.about-tag {
  background: var(--rose-light);
  color: var(--text);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.about-stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  border-top: 1px solid var(--rose-light);
}
.stat h4 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.stat p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============ CONTACT ============ */
.contact {
  padding: 4rem 0;
  background: var(--bg-cream);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-form-card{
	order: 2;
}
.contact-info{
	order: 1;
}
.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.contact-info > p {
  font-size: 0.95rem;
  color: #000;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  color: var(--primary-dark);
  background: var(--rose-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
}
.contact-item small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}
.contact-item span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.contact-item a {
  transition: color 0.3s;
}
.contact-item a:hover {
  color: var(--primary);
}
.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-social a {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.contact-social a:hover {
  background: var(--primary-dark);
}
.contact-social a svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* Form */
.contact-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--rose-medium);
  box-shadow: 0 10px 40px rgba(176, 112, 112, 0.08);
}
.contact-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.contact-form-card > p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--rose-medium);
  border-radius: 10px;
  font-family: "Lato", sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(176, 112, 112, 0.1);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 0.9rem;
  border: none;
  border-radius: 50px;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.active {
  display: block;
}
.form-success svg {
  width: 60px;
  height: 60px;
  stroke: var(--primary);
  margin: 0 auto 1rem;
}
.form-success h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--text);
  padding: 1rem 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer p {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ============ WHATSAPP BUBBLE ============ */
.whatsapp-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s;
}
.whatsapp-bubble:hover {
  transform: scale(1.1);
}
.whatsapp-bubble svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .service-card{
	padding: 1rem;
  }
  .about-image::after {
    display: none;
  }
  .about-tags {
    justify-content: center;
  }
  .about-stats {
    justify-content: center;
  }
  .navbar-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 768px) {
	.services, .about, .contact {
		padding: 2rem 0;
	}
	.services-grid{
		gap: 1rem
	}
	.services-grid {
		grid-template-columns: 1fr;
		flex-direction: column; 
		max-width: 400px;
		margin: 0 auto;
	}
	.section-header{
	    position: inherit;   
	}
	.services-wrapper{
	    flex-direction: column;
	    gap: 0;
	}
	.about-grid {
		grid-template-columns: 1fr;
		text-align: center;
		flex-direction: column-reverse; 
	}
	.about-image{
		order: 2;
	}
    .about-image img{
        width: 350px;
    }
	.about-content{
		order: 1;
	}
	.contact-layout {
    	grid-template-columns: 1fr;
  	}
	.contact-info{
		order: 2;
	}
	.contact-form-card{
		order: 1;
		padding: 1rem;
	}
}
@media (max-width: 578px) {
  .hero h1 {
    font-size: 2rem;
  }
  .top-bar .container {
    font-size: 0.7rem;
    gap: 1rem;
  }
  .hero-watermark{
	display: none;
  }
  .section-header h2{
	font-size: 1.5rem;
  }
  .about-image img{
    width: 300px;
  }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #fafafa;
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 1.5rem;
  width: 300px;
  padding-top: 2rem;
}
.mobile-nav.active {
  display: flex;
}
.mobile-nav a {
  font-size: 1.05rem;
  color: var(--text);
}
.mobile-nav .close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Contenedor base de la alerta */
.custom-alert {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo para Errores */
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Estilo para Éxito */
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

/* El botón de cerrar (X) */
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.close-btn:hover {
    opacity: 1;
}