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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

section {
  min-height: 100vh;
}

/* ######################## Navbar ######################## */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: white;
  z-index: 1000;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.logo {
  max-height: 2.5rem;
}

.logo a {
  display: block;
}

.logo1 {
  max-height: 2rem;
  display: block;
}

/* ################################## Hero Section ################################## */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 1;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1000px;
  color: white;
  font-family: 'Times New Roman', Times, serif;
  padding: 0 1rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo,
.hero-tagline,
.btn-primary {
  opacity: 0;
}

.hero-logo {
  max-height: 15rem;
  width: auto;
  max-width: 100%;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-tagline {
  font-size: 3.8rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  text-shadow: 4px 4px 12px rgba(0,0,0,0.5);
  font-style: italic;
  animation: fadeUp 1s ease forwards;
  animation-delay: 1.2s;
}

.btn-primary {
  display: inline-block;
  background: black;
  color: white;
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  letter-spacing: 3px;
  transition: all 0.3s;
  animation: fadeUp 1s ease forwards;
  animation-delay: 2s;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .hero-tagline { font-size: 3rem; }
  .hero-logo    { max-height: 10rem; }
}

@media (max-width: 768px) {
  .hero { padding: 2rem 1rem; }
  .hero-logo    { max-height: 8rem; }
  .hero-tagline { font-size: 2rem; line-height: 1.3; }
  .btn-primary  { font-size: 0.9rem; padding: 0.7rem 1.6rem; letter-spacing: 2px; }
}

@media (max-width: 480px) {
  .hero-logo    { max-height: 6rem; }
  .hero-tagline { font-size: 1.5rem; margin-bottom: 1.5rem; }
  .btn-primary  { font-size: 0.82rem; padding: 0.65rem 1.2rem; }
}

/* ############################# QUE HACEMOS ########################### */

.section-container {
  position: relative;
  display: flex;
  min-height: 100vh;
  background-image: url(images/Desktop3.jpeg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  align-items: stretch;
  justify-content: flex-end;
}

.text-side {
  width: 48%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(220, 232, 245, 0.92),
    rgba(255, 255, 255, 0.97)
  );
  padding: 8rem 4rem 6rem;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  transition-delay: 0.3s;
}

.text-side.show {
  opacity: 0.9;
  transform: translateX(0);
}

.text-content {
  max-width: 520px;
}

.text-content .section-title {
  margin-bottom: 2rem;
}

.text-content p {
  font-size: 1.15rem;
  color: #34495e;
  line-height: 1.9;
  text-align: justify;
}

@media (max-width: 900px) {
  .section-container {
    justify-content: center;
    background-attachment: scroll;
  }
  .text-side {
    width: 100%;
    min-height: 100vh;
    padding: 6rem 2.5rem 4rem;
  }
  .text-content { max-width: 100%; }
}

@media (max-width: 600px) {
  .text-content p { font-size: 1.05rem; }
  .text-side      { padding: 5rem 1.5rem 3rem; }
}

/* ########################### Títulos de sección ############################ */

.section-title {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  font-weight: 300;
  font-family: 'Times New Roman', Times, serif;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.section-title strong {
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: #b0b8c8;
  margin-top: 1rem;
}

/* ########################### About Section ############################ */

.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
  background: #f4f5f7;
}

.about-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-content p {
  font-size: 1.15rem;
  line-height: 1.9;
  text-align: justify;
  color: #444;
}

.about-profile {
  background: white;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.profile-image {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.profile-name  { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; letter-spacing: 0.02em; }
.profile-title { font-size: 0.95rem; font-weight: 500; margin-bottom: .8rem; color: #666; letter-spacing: 0.03em; }
.profile-email { margin-bottom: .6rem; color: #888; font-size: 0.9rem; }

.profile-link {
  color: #4a6fa5;
  text-decoration: none;
  font-size: 0.85rem;
  word-break: break-all;
}

.profile-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .about-section { padding: 5rem 2rem; }
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .about-content p { text-align: left; }
  .profile-image   { max-width: 220px; }
  .section-title::after { margin: 1rem auto 0; }
}

@media (max-width: 600px) {
  .section-title   { font-size: 2.2rem; }
  .about-content p { font-size: 1.05rem; }
  .about-section   { padding: 4rem 1.5rem; }
}

/* ########################### Services Section ############################ */

.services-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.services-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.92;
}

.services-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.services-overlay {
  position: relative;
  z-index: 2;
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.services-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3.5rem;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
}

.services-title strong { font-weight: 700; }

.services-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: rgba(255,255,255,0.5);
  margin: 1rem auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  font-family: 'Times New Roman', Times, serif;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 6px;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

.service-card h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c2c3e;
  text-align: center;
  letter-spacing: 0.01em;
}

.service-card.green  { background: #d6ddeb; }
.service-card.yellow { background: #9c9bbd; }
.service-card.blue   { background: #646386; }
.service-card.pink   { background: #474666; }

.service-card.blue h2,
.service-card.pink h2 { color: #e8e8f0; }

@media (max-width: 768px) {
  .services-overlay { padding: 5rem 1.5rem; }
  .services-title   { font-size: 2.2rem; margin-bottom: 2.5rem; }
  .services-grid    { grid-template-columns: 1fr; gap: 1rem; }
  .service-card     { min-height: 120px; padding: 2rem; }
  .service-card h2  { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .services-title  { font-size: 1.8rem; }
  .service-card h2 { font-size: 1.6rem; }
  .service-card    { min-height: 100px; padding: 1.5rem; }
}

/* ########################### Contact Section ############################ */

.contact-section {
  min-height: 100vh;
  display: flex;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  width: 100%;
  min-height: 100vh;
}

.contact-info {
  background: white;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  border-right: 1px solid #ebebeb;
}

.logo-large {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-large img {
  max-width: 80%;
  height: auto;
}

.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-section h3 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.5;
}

.social-icon {
  border-radius: 8px;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.8;
}

.social-icon:hover { transform: scale(1.08); opacity: 1; }

.contact-form-wrapper {
  background: #2c2c3a;
  padding: 5rem 4rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-wrapper h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.contact-form-wrapper h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: rgba(255,255,255,0.3);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.contact-form-wrapper h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255,255,255,0.08);
  color: white;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: transparent;
  color: white;
  padding: 0.9rem 3rem;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  align-self: flex-start;
  border-radius: 2px;
  margin-top: 0.5rem;
}

.btn-submit:hover  { background: rgba(255,255,255,0.12); border-color: white; }
.btn-submit:active { transform: scale(0.98); }

#formMessage {
  font-size: 0.9rem;
  min-height: 1.2rem;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 1024px) {
  .contact-form-wrapper { padding: 4rem 3rem; }
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .contact-info {
    padding: 4rem 2rem;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #ebebeb;
  }
  .contact-form-wrapper { padding: 4rem 2.5rem; }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-form-wrapper h2 { font-size: 2.2rem; }
  .contact-form-wrapper h3 { font-size: 0.95rem; }
  .contact-info            { padding: 3rem 1.5rem; }
  .contact-form-wrapper    { padding: 3rem 1.5rem; }
  .btn-submit              { align-self: center; width: 100%; }
}

/* ########################### Navbar responsive ############################ */

@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
}

/* ########################### Animaciones de scroll ############################ */

.reveal {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateX(0);
}