/* style.css */

/*--------------------------------------------------------------
# Global Styles & Variables
--------------------------------------------------------------*/
:root {
  /* Colors - Gradient Scheme */
  --primary-color: #ff7e5f; /* Coral-like */
  --secondary-color: #feb47b; /* Light Orange */
  --gradient-start: var(--primary-color);
  --gradient-end: var(--secondary-color);
  --gradient-background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  --gradient-background-alt: linear-gradient(135deg, #6a82fb, #fc5c7d); /* Alternative gradient */

  /* Text Colors */
  --text-dark: #333333; /* For light backgrounds */
  --text-light: #ffffff; /* For dark backgrounds / hero */
  --text-muted: #6c757d;
  --heading-dark: #222222; /* Darker headings */

  /* Accent Colors */
  --accent-color-1: #4a90e2; /* Blue */
  --accent-color-2: #50e3c2; /* Teal */

  /* Backgrounds */
  --background-light: #f8f9fa;
  --background-dark: #343a40;
  --background-grey: #f5f5f5; /* Bulma light grey */

  /* Fonts */
  --font-primary: 'Nunito', sans-serif;
  --font-secondary: 'Oswald', sans-serif;

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-ease: ease-in-out;

  /* Navbar Height */
  --navbar-height: 52px; /* Default Bulma navbar height */
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--text-light); /* Default background */
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
  font-family: var(--font-secondary);
  color: var(--heading-dark);
  font-weight: 700;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.title {
    color: var(--heading-dark); /* Ensure Bulma titles are dark */
}
.subtitle {
    color: var(--text-muted); /* Subtitles slightly muted */
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem !important; /* Increased spacing */
  color: var(--heading-dark);
}

.section-heading.is-1 { font-size: 2.8rem; }
.section-heading.is-2 { font-size: 2.2rem; }
.section-heading.is-3 { font-size: 1.8rem; }

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Read More Links */
.content a[href="#"], .content a[href="#"]:not(.button) {
  color: var(--accent-color-1);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-color-1);
  transition: all var(--transition-speed) var(--transition-ease);
}

.content a[href="#"]:hover, .content a[href="#"]:not(.button):hover {
  color: var(--gradient-end);
  border-bottom-style: solid;
  background-color: rgba(254, 180, 123, 0.1);
}


/* Sections */
.section {
  padding: 4rem 1.5rem; /* Reduced vertical padding */
}

.has-gradient-background {
  background: var(--gradient-background);
  color: var(--text-light); /* Ensure text is light on gradient */
}
.has-gradient-background .title,
.has-gradient-background .subtitle,
.has-gradient-background p,
.has-gradient-background h1,
.has-gradient-background h2,
.has-gradient-background h3,
.has-gradient-background h4 {
    color: var(--text-light);
}
.has-gradient-background a {
    color: var(--text-light);
    text-decoration: underline;
}
.has-gradient-background a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Background Image Styling */
[style*='background-image'] {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Dark Overlay for Text on Images */
.has-text-overlay {
  position: relative;
}

.has-text-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Ensure sufficient darkness for contrast */
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.has-text-overlay > .hero-body,
.has-text-overlay > .container, /* For sections with background */
.has-text-overlay > div { /* General direct children */
  position: relative;
  z-index: 2;
}


/*--------------------------------------------------------------
# Buttons (Global Styles)
--------------------------------------------------------------*/
.button, button, input[type='submit'] {
  font-family: var(--font-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px; /* Pill shape */
  padding: 0.8em 2em;
  transition: all var(--transition-speed) var(--transition-ease);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button.is-primary, button.is-primary, input[type='submit'].is-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.button.is-primary:hover, button.is-primary:hover, input[type='submit'].is-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.button.is-light.is-outlined {
  background-color: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}
.button.is-light.is-outlined:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  border-color: var(--text-light);
}

.button.is-gradient {
    background: var(--gradient-background);
    color: var(--text-light);
    border: none;
}
.button.is-gradient:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); /* Reverse gradient on hover */
    color: var(--text-light);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

/* Microinteractions for buttons */
.button:active, button:active, input[type='submit']:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/*--------------------------------------------------------------
# Header & Navbar
--------------------------------------------------------------*/
.navbar.is-fixed-top {
  background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: background-color var(--transition-speed) var(--transition-ease);
}

.navbar-item, .navbar-link {
  font-family: var(--font-secondary);
  font-weight: 400;
  color: var(--text-dark);
  transition: color var(--transition-speed) var(--transition-ease);
}

.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active {
  background-color: transparent !important;
  color: var(--primary-color) !important;
}

.navbar-burger {
  color: var(--text-dark);
}

.navbar-burger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Add padding to body to avoid content being hidden behind fixed navbar */
body {
  padding-top: var(--navbar-height);
}

/* Privacy & Terms page top padding */
.privacy-content, .terms-content {
    padding-top: calc(var(--navbar-height) + 40px); /* Navbar height + extra space */
    padding-bottom: 40px;
    min-height: calc(100vh - var(--navbar-height)); /* Ensure content fills viewport height below navbar */
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero.hero {
  position: relative; /* Needed for parallax */
  color: var(--text-light);
  min-height: 85vh; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero .hero-body {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

#hero .title, #hero .subtitle {
  color: var(--text-light) !important; /* Strict rule for hero text */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* Enhanced shadow for readability */
}
#hero .title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

#hero .subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

#hero .button {
    margin: 0 0.5rem;
}

/* Parallax Effect Placeholder (Requires JS - e.g., simpleScrollParallax.js or similar) */
#hero {
    background-attachment: fixed; /* Basic parallax - can be enhanced with JS */
}


/*--------------------------------------------------------------
# Card Styles (Global - Using Bulma's structure)
--------------------------------------------------------------*/
.card {
  background-color: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
  overflow: hidden; /* Ensure content respects border radius */
  height: 100%; /* Make cards in columns equal height */
  display: flex; /* Enable flexbox for vertical alignment */
  flex-direction: column; /* Stack image and content vertically */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card .card-image {
    /* Bulma structure: card > card-image > figure.image */
    text-align: center; /* Center figure */
    overflow: hidden; /* Clip image if needed */
    max-height: 250px; /* Control max image height */
    display: flex;
    align-items: center; /* Vertically center image within container */
    justify-content: center; /* Horizontally center image */
}

.card .card-image figure.image {
    margin: 0; /* Remove default margins if any */
    width: 100%;
    height: 100%; /* Make figure fill container */
}

.card .card-image img {
  width: 100%;
  height: 100%; /* Fill the fixed height */
  object-fit: cover; /* Crop image to fit container */
  display: block;
  transition: transform var(--transition-speed) var(--transition-ease);
}

.card:hover .card-image img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.card .card-content {
  padding: 1.5rem;
  text-align: left; /* Default content align */
  flex-grow: 1; /* Allow content to take remaining space */
  display: flex;
  flex-direction: column;
}

.card .card-content .title {
  margin-bottom: 0.5rem;
  color: var(--heading-dark);
}

.card .card-content .content {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1; /* Ensure content pushes elements below it */
}

.card .card-content time {
    margin-top: auto; /* Push time/read more to the bottom */
    padding-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Centering content within specific cards if needed */
.card.has-text-centered .card-content {
    text-align: center;
}


/*--------------------------------------------------------------
# Specific Section Styles
--------------------------------------------------------------*/

/* About Us */
#about-us .content {
  font-size: 1.1rem;
}
#about-us figure.image {
    border-radius: 8px;
    overflow: hidden;
}

/* Services Section */
#services {
  background-color: var(--background-light);
}

/* Portfolio Section */
#portfolio .tile.notification {
    border-radius: 8px;
    padding: 1.5rem;
    background-color: var(--background-grey); /* Lighter background for tiles */
    transition: transform var(--transition-speed) var(--transition-ease);
}
#portfolio .tile.notification:hover {
    transform: scale(1.02);
}
#portfolio .tile.notification .title {
    color: var(--heading-dark); /* Ensure titles are dark */
    margin-bottom: 0.5rem;
}
#portfolio .tile.notification .subtitle {
    color: var(--text-muted); /* Ensure subtitles are muted */
     margin-bottom: 1rem;
}
#portfolio .tile.notification figure.image {
    margin-top: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

/* Awards Section */
#awards {
    background-color: var(--background-light);
}
#awards .column.is-narrow {
    margin: 1rem;
}
#awards figure.image img {
    filter: grayscale(50%);
    transition: filter var(--transition-speed) var(--transition-ease);
}
#awards figure.image:hover img {
    filter: grayscale(0%);
}
#awards p {
    margin-top: 0.5rem;
    font-family: var(--font-secondary);
    color: var(--text-muted);
}

/* Customer Stories */
#customer-stories .card .media-left img {
    border: 2px solid var(--primary-color);
}
#customer-stories .card .content {
    font-style: italic;
    color: var(--text-dark);
    padding-left: 1rem;
    border-left: 3px solid var(--gradient-start);
}
#customer-stories .card .media-content .title {
    color: var(--heading-dark);
}
#customer-stories .card .media-content .subtitle {
    color: var(--text-muted);
}

/* Community Section */
#community {
    background-color: var(--background-light);
}
#community .content {
  font-size: 1.1rem;
}
#community figure.image {
    border-radius: 8px;
    overflow: hidden;
}

/* Blog Section */
#blog .card {
    height: 100%; /* Ensure cards are same height */
}


/* External Resources Section */
#resources {
    background-color: var(--background-light);
}
#resources .box {
    background-color: var(--text-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
#resources ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#resources li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
#resources li:last-child {
    border-bottom: none;
}
#resources li a strong {
    color: var(--heading-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}
#resources li a:hover strong {
    color: var(--primary-color);
}
#resources li p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact .title.is-4 {
    margin-bottom: 1.5rem;
}
#contact p {
    margin-bottom: 1rem;
}
#contact p strong {
    color: var(--heading-dark);
}
#contact p i { /* FontAwesome Icons if used */
    margin-right: 0.5rem;
    color: var(--primary-color);
}
#contact a {
    color: var(--primary-color);
}
#contact a:hover {
    color: var(--secondary-color);
}
#contact figure.image img {
    border-radius: 8px;
}

/* Form Styles */
#contact-form .label {
  font-family: var(--font-secondary);
  color: var(--heading-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#contact-form .input,
#contact-form .textarea {
  border-radius: 8px;
  border: 1px solid #dbdbdb;
  padding: 0.8em 1em;
  transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

#contact-form .input:focus,
#contact-form .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(255, 126, 95, 0.25); /* Use primary color with alpha */
  outline: none;
}

#contact-form .textarea {
  min-height: 150px;
}

#contact-form .checkbox label {
    color: var(--text-muted);
}
#contact-form .checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}
#contact-form .checkbox input[type="checkbox"] {
    margin-right: 0.5em;
}

#contact-form .button {
  margin-top: 1rem;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--background-grey);
  padding: 3rem 1.5rem 2rem; /* Adjust padding */
  color: var(--text-dark);
  border-top: 1px solid #e0e0e0;
}

.footer .title.is-5 {
  font-family: var(--font-secondary);
  color: var(--heading-dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--text-muted);
  transition: color var(--transition-speed) var(--transition-ease);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-color);
  text-decoration: none; /* Keep it clean */
}

.footer .content.has-text-centered p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Footer Social Links (Text styling) */
.footer .column:last-child p { /* Target paragraphs in the 'Síguenos' column */
    margin-bottom: 0.5rem;
}
.footer .column:last-child a {
    color: var(--text-muted);
    font-weight: bold; /* Make them slightly bolder */
}
.footer .column:last-child a:hover {
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Success Page
--------------------------------------------------------------*/
.success-page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Full viewport height */
  text-align: center;
  background: var(--gradient-background-alt); /* Use the alternative gradient */
  color: var(--text-light);
  padding: 2rem;
}

.success-page-container .success-content {
    background-color: rgba(255, 255, 255, 0.1); /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 600px;
}

.success-page-container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.success-page-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.success-page-container .button {
  background-color: var(--text-light);
  color: var(--accent-color-1); /* Use an accent color from the gradient */
  border: none;
}

.success-page-container .button:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--accent-color-1);
}

/*--------------------------------------------------------------
# Animations & Scroll Effects (Placeholders for JS)
--------------------------------------------------------------*/
/* Initial state for ScrollReveal elements */
.reveal {
  visibility: hidden;
}

/* Add subtle transitions to elements that might change */
img, .card, .button, input, textarea, .navbar {
    transition: all var(--transition-speed) var(--transition-ease);
}

/* Potential Morphing Effect (Simple example: Button shape on hover) */
/* This is complex with pure CSS, usually requires SVG or JS */
/* .button { border-radius: 50px; }
.button:hover { border-radius: 8px; } */

/*--------------------------------------------------------------
# Responsiveness (Leveraging Bulma + Custom Tweaks)
--------------------------------------------------------------*/
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.95); /* Ensure menu background is solid */
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        padding: 0.5rem 0;
    }
    .navbar-item {
        color: var(--text-dark) !important; /* Ensure text is dark in mobile menu */
    }
     .navbar-item:hover {
         background-color: var(--background-grey) !important;
         color: var(--primary-color) !important;
     }
     body {
        /* Adjust body padding if navbar height changes significantly in mobile */
        padding-top: var(--navbar-height);
     }
      .privacy-content, .terms-content {
        padding-top: calc(var(--navbar-height) + 20px);
    }
}

@media screen and (max-width: 768px) {
  h1, .title.is-1 { font-size: 2.5rem; }
  h2, .title.is-2 { font-size: 2rem; }
  h3, .title.is-3 { font-size: 1.6rem; }
  #hero .title { font-size: 2.8rem; }
  #hero .subtitle { font-size: 1.5rem; }

  .section {
    padding: 3rem 1rem;
  }

  /* Adjust columns for better stacking */
  .columns.is-vcentered .column:last-child {
      margin-top: 2rem; /* Add space between text and image when stacked */
  }
}